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ázka očekávaného výstupu
Takto vypadá správná odpověď — počet řádků je její vlastní, nemusí odpovídat tabulkám schématu.
| city | revenue |
|---|---|
| Moscow | 1200 |
Přihlaste se, abyste viděli historii odevzdání
Přihlásit sePřihlaste se, abyste mohli použít AI mentora
Přihlásit se