Lecture
Join Flights with Passengers
The reservations team needs a complete list of upcoming flights, including the names of passengers on each booking.
Your task is to create a report that combines passenger information with flight reservation details.
You’ll use an INNER JOIN to connect records from two related tables — passengers and reservations.
Joins like this are a core part of SQL and essential for combining data from multiple sources.
What to Show
From the flight_reservations.sqlite database, display:
name(from thepassengerstable)flight_codedeparture_date
Task
Use INNER JOIN to combine the passengers and reservations tables on their shared passenger_id.
Write a SQL query that returns each passenger’s name, flight code, and departure date — showing only passengers with active reservations.
Previous lessonFilter Customers with High Transaction TotalsNext lessonList Passengers with No Reservations
Lessons in this chapter · Solve real-world problems with SQL.
- 1. Filter Bookings by Region
- 2. Sort and Limit Recent Reservations
- 3. Use Logical AND/OR to Filter Hotel Data
- 4. Count Transactions by Customer
- 5. Calculate Average Spending per Client
- 6. Filter Customers with High Transaction Totals
- 7. Join Flights with Passengers
- 8. List Passengers with No Reservations
- 9. Find Customers with High-Priced Ticket Purchases
- 10. Filter Events with Above-Average Ticket Sales
sqlQuiz
?
Lecture
AI Tutor
Design
Upload
Notes
Favorites
Help