New month, new goals. Your help keeps the project moving forward. 🖥️ Support sqltest →
SQL code copied to buffer
Task 46:

Flight Distribution by Day

PostgreSQL
Find the distribution of flights from Moscow to St. Petersburg by day of the week. Display the result in three columns: day_of_week - day of the week in English (Sunday - Saturday), flights - number of flights on this day according to the schedule (scheduled_arrival), passengers - number of passengers according to the boarding_passes table. Sort the table by day of the week from Monday to Sunday.
Expected result Columns: 3 · Rows: 7
day_of_week flights passengers

Sample rows open after wrong checks: 0 of 3

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.