Keep SQLtest alive: Help cover this month's $100 server costs to keep all lessons and the SQL playground online. Support the project →
SQL code copied to buffer
Task 115:

Flight Statistics

PostgreSQL
Get statistics on flights departing from Domodedovo Airport (DME) in August 2017.
Output the result as a table with columns:
     count_departed - the total number of flights departing from the airport,
     count_delayed - the number of delayed flights (a flight that actually took off more than half an hour later than scheduled is considered delayed) and
     delayed_flights_rate - percentage of delayed flights rounded to two decimal places.
Expected result Columns: 3 · Rows: 1
count_departured count_delayed delayed_flights_rate

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

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

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

Privacy & Cookie Policy.