AlgoPlus//structures / sql-joins
Read the theory

SQL Joins

How each join type decides which rows survive — and where NULLs are filled in.

Join
INNER
Result rows
Join type
Legend
Left (Employee)
Right (Department)
NULL (no match)
AI Tutor Workspace
In a nutshell
A join builds one combined table from two by pairing rows on a shared column, the join key. An inner join keeps only rows that have a match on both sides. Outer joins — left, right, full — also keep the unmatched rows from one or both tables, filling the empty columns with NULL. A cross join pairs every row with every row.
Ready
Press play to begin the cinematic walkthrough.
A join matches rows of two tables on a shared value. INNER keeps only matches; outer joins keep unmatched rows too, NULL-filling the missing side; CROSS is every pairing.
Key terms
Go deeper in the lesson
Read the full theory, intuition & complexity for SQL Joins.