#1122

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.

Exemplu de ieșire așteptată

Așa arată un răspuns corect — numărul său de rânduri îi este propriu, nu trebuie să se potrivească cu tabelele din schemă.

pctdriver_id
66.671
33.332
1003

Rezultatul interogării tale va apărea aici