RienSQL
TASK #16 · Medium

Passengers by number of flights

Your brief
Display each passenger's ID, name, and number of flights. Include only passengers who have made at least 1 flight. Sort the result by the number of flights in descending order and by name in ascending order.
Expected columnsid name countAir travels
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
companyid, name
passengerid, name
pass_in_tripid, trip, passenger, place
tripid, company, plane, town_from, town_to, time_out, time_in