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.
Exempel på förväntad utdata
Så här ser ett korrekt svar ut — radantalet är dess eget, det behöver inte matcha schematabellerna.
| city | revenue |
|---|---|
| Moscow | 1200 |
Logga in för att se historik över inskick
Logga inLogga in för att använda AI-mentorn
Logga in