🙏 We need your help! SQLtest.online has no ads and lives only on donations. Even a small amount helps. Donate now →
SQL code copied to buffer
Task 59:

Rate airports

PostgreSQL
Using the solution of the previous problem rank airports by the number of delayed flights in August 2017 (the fewer the better).
Only include airports with more than 100 departures per month.
Output the result as a table with columns:
     airport_rank - airport rating,
     airport_name - English name of the airport
     delayed_flights_rate - percentage of delayed flights accurate to two digits.
Sort the table by rating
Expected result Columns: 3 · Rows: 17
airport_rank airport_name delayed_flights_rate

Sample rows open after wrong checks: 0 of 3

Write your query below and click "Check it!". Tables are described in the right pane.

Tutorial

By checking a query, you agree that it is stored without your account details and may be included in anonymized datasets, including for AI training. Learn more

The query result will appear here. Ctrl+Enter - Run query