Update: 2026-07-25 18:28:30

This commit is contained in:
Hamza-Ayed
2026-07-25 18:28:31 +03:00
parent 5e103f60f2
commit 4bbc687c15
9 changed files with 133 additions and 61 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ try {
COUNT(r.id) as total_rides
FROM driver d
LEFT JOIN ride r ON d.id = r.driver_id AND LOWER(r.status) IN ('finished','completed')
GROUP BY d.id
GROUP BY d.id, d.first_name, d.last_name, d.phone
HAVING total_earned > 0
ORDER BY total_earned DESC
LIMIT 50