🎯 Few days left this month Support SQLTest.online and help us keep SQL practice free for everyone. Donate today →
SQL code copied to buffer
Task 42:

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
The query result will appear here. Ctrl+Enter - Run query