SQL code copied to buffer
RU PT FR
Task 145:

Get a list of airports with more than one direct flight

Get a list of airports that have more than one direct flight between them (with different flight_no).
Display a table with columns departure_airport_code, arrival_airport_code, flights_count and flight_numbers - sorted array of flight numbers.
Sort the results by descending number of flights, then ascending by departure and arrival airport codes.

Use PostgreSQL syntax to write your answer. Descriptions of tables are provided in the right pane.

Write your request in the field below and click the "Check it!" button.
Get hint
Copy code Clear editor

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

Privacy & Cookie Policy.