Completed
Incomplete
Not Attended
Completed
Incomplete
Not Attended
Celestial Airlines prides itself on providing smooth and efficient travel experiences
for passengers across the country. The airline maintains a comprehensive flight record
database, capturing flight ID, origin, destination, seat capacity, and booked seats for each
flight. The Airline Operations Analyst is tasked with monitoring flight occupancy to optimize
bookings, identify flights with available seats, calculate the total number of passengers across
all flights, and sort flights by capacity for planning future schedules. Your role is to provide SQL
queries to assist airline operations.
List all flights with available seats
Calculate total passengers booked across all flights.
| flight_id | origin | destination | capacity | booked_seats |
|---|---|---|---|---|
| 1 | New York | London | 300 | 280 |
| 2 | Paris | Tokyo | 250 | 200 |
| 3 | Dubai | Sydney | 200 | 180 |
| 4 | Mumbai | Singapore | 150 | 120 |
| 5 | Toronto | Berlin | 180 | 150 |
