Highest-revenue city
Finance wants the flagship city. Find the city with the highest total fare from completed trips; on a tie, take the alphabetically earlier city. Return city and revenue, a single row.
Ukážka očakávaného výstupu
Takto vyzerá správna odpoveď — počet riadkov je jej vlastný, nemusí sa zhodovať s tabuľkami schémy.
| city | revenue |
|---|---|
| Moscow | 1200 |
Prihláste sa, aby ste videli históriu odoslaní
Prihlásiť saPrihláste sa, aby ste mohli používať AI mentora
Prihlásiť sa