Joins & Subqueries
Combine data from multiple tables and write nested queries.
🔀
Intermediate8 topics
INNER JOIN
Combine rows from two tables where a condition matches
Intermediate 16m
LEFT JOIN
Keep all left rows — even when there's no match on the right
Intermediate 14m
RIGHT JOIN
Keep all right rows — the mirror of LEFT JOIN
Intermediate 12m
FULL OUTER JOIN
Keep every row from both sides — the union of LEFT and RIGHT
Intermediate 13m
SELF JOIN
Join a table to itself — for hierarchies and row comparisons
Intermediate 12m
CROSS JOIN
Generate every possible combination of rows from two tables
Intermediate 8m
Subqueries
Nest one query inside another for multi-step logic
Intermediate 16m
EXISTS vs IN
Two ways to check for related rows — and when each one wins
Advanced 14m