Phase 3 · SQL for Data Analysis
TopicsJoins (INNER, LEFT, RIGHT, FULL)
Part of the Data Analyst Roadmap.
Summary
Combining rows from two or more tables based on a shared key — INNER returns only matches, LEFT keeps all rows from the first table, RIGHT the second, FULL keeps everything from both.
How to Learn This
- 1Draw a Venn diagram for each join type before writing the query.
- 2Practice a LEFT JOIN to find rows in one table with no match in another (e.g. users with no orders).
- 3Write the same question as an INNER JOIN and a LEFT JOIN and compare row counts.
More topics in SQL for Data Analysis
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — free on the InsideEdge app.