🙏 We really need your support. We need funding to continue our mission: publishing new lessons and improving the platform. If you can, please support the project with a donation. Help the project now →
SQL code copied to buffer
Task 10:

Zones with Unusually High Cost per Mile

Find pickup zones where the average cost per mile is higher than the average cost per mile for the entire dataset. Show the zone, trip count, average cost per mile, and the percentage by which it exceeds the overall average. Include only zones with at least 100 trips and trips with a positive distance and specified cost.

Use DuckDB syntax to write your answer. Descriptions of tables are provided in the right pane.

Write your request in the field below and click the "Check it!" button.
Get hint
Copy code Clear editor

Hi! Could we please enable some services and cookies to improve your experience and our website?

Privacy & Cookie Policy.