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.
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.
| pct | driver_id |
|---|---|
| 66.67 | 1 |
| 33.33 | 2 |
| 100 | 3 |
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