Skip to content
skillbld
Day 7 of 14 35 minINNERLEFTFULLSelf join

Combine rows from related tables. Match books with their authors using INNER JOIN, keep unmatched rows with LEFT and FULL JOIN, and chain joins across several tables.

By the end of today you can

  • Combine two tables with INNER JOIN … ON
  • Keep unmatched rows with LEFT JOIN and FULL JOIN
  • Find rows with no match using LEFT JOIN … WHERE … IS NULL
  • Join three or more tables in one query
  • Use table aliases to keep queries readable

What's inside

  • 5 sections
  • 3 diagrams and mind maps
  • 5 code examples you can run
  • 4-question quiz
  1. 1INNER JOIN: matching pairs
  2. 2LEFT JOIN: keep every row on the left
  3. 3Finding rows with no match
  4. 4FULL JOIN: everything from both sides
  5. 5Joining three or more tables

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free
Day 7: Joins · PostgreSQL · SkillBld