Driver share of city revenue
Revenue-distribution analytics. For each driver, compute their share of their city's revenue from completed trips, as a percentage with two decimals. Ignore trips with no driver. Return driver_id and pct, ordered by driver.
Exempel på förväntad utdata
Så här ser ett korrekt svar ut — radantalet är dess eget, det behöver inte matcha schematabellerna.
| pct | driver_id |
|---|---|
| 66.67 | 1 |
| 33.33 | 2 |
| 100 | 3 |
Logga in för att se historik över inskick
Logga inLogga in för att använda AI-mentorn
Logga in