Back to course overview
SQL Fundamentals
Joining Tables
Understand primary and foreign keys, combine related tables with INNER JOIN, and find rows with no match using LEFT JOIN.
3 lessons · 1h 34m
- 36mPrimary and foreign keysReading
Learn why data is split across tables, and how primary keys, foreign keys and junction tables connect them.
- 33mINNER JOINReading
Combine related rows from two tables with INNER JOIN and an ON condition, and filter the joined result.
- 25mLEFT JOIN and finding gapsReading
Keep every row from one table with LEFT JOIN, and find rows with no match using IS NULL.