Caffeinated Coder
Book an appointment
Lesson 04 · SQL

JOINs

Real databases split data into several tables, so each fact is written once. A JOIN puts the rows back together. Follow SELECT name, title FROM authors JOIN books ON books.author_id = authors.id as the DBMS tests every author against every book, keeps the pairs that match, and then see how LEFT JOIN keeps an author who has no books.

12 min9 steps5 questionsBeginner
Fig 4 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.