Learn SQL: Multiple Tables
Combine data spread across related tables: match rows with inner and left joins, rely on primary and foreign keys, build every combination with CROSS JOIN, stack results with UNION, and organise multi-step queries with WITH.
- Beginner level
- 3 modules
- 10 lessons
- 40 tasks and questions
Syllabus
01Joining TablesSee why databases split data into related tables, then put it back together with JOIN, understand what inner and left joins keep, and use primary and foreign keys to link tables safely.5 lessons
02More Ways to CombineGenerate every pairing with CROSS JOIN, stack the results of two queries with UNION, INTERSECT and EXCEPT, and break long queries into named steps with WITH.3 lessons
03Project and ReviewAnswer questions about a language school spread over four related tables, then review joins, keys and set operations in a quiz.2 lessons