🚀 November has started! SQLtest.online stays free thanks to donations from people like you. Help us reach this month's goal early so the site keeps running without interruptions. Support now →
SQL code copied to buffer
Task 100:

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.

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