← All guides
Laptop screen showing HTML and JavaScript code
Study Science

SQL Joins Explained: Inner, Left, Right and Full With Examples

Joins combine rows from two tables: inner keeps matches only, left keeps all left rows, right mirrors it, and full keeps everything. Includes a direct answer, a diagram and three quick self-checks.

Photo: Unsplash · Generative study map: Brain
3 min read · Updated 2026-11-30 · Study Science
Jump to quick answers ↓
Direct answer

Joins combine rows from two tables: inner keeps matches only, left keeps all left rows, right mirrors it, and full keeps everything.

Joins combine rows from two tables: inner keeps matches only, left keeps all left rows, right mirrors it, and full keeps everything. Everything below expands that one sentence into something you can actually use, in four short sections.

The core idea

The core idea fits in one move. Inner joins drop unmatched rows, which silently deletes data when you expected a left join. Left joins return NULL on the right side for unmatched rows, and WHERE clauses can accidentally convert them to inner joins.

Join keys need indexes for performance, and duplicate keys multiply rows, the classic fan-out surprise. So far so clear, but the real skill shows up in the exceptions, which come next.

How it actually works

Next, the moving pieces. A WHERE filter on the right table rejected NULL rows; move it into the ON clause.

fan-outSQL Joins ExplainedNULLSQL Joins Explainedon clauseSQL Joins Explained
PieceWhat it meansWhy it matters
fan-outrow multiplication from duplicate join keysit is where mistakes cluster
NULLthe marker for absent values on unmatched rowsit is where mistakes cluster
on clausethe condition pairing rows across tablesit separates beginners from the fluent

Where people get it wrong

The traps are few but well-worn. Inner, followed by left. Which raises the obvious next question, and the next section answers it.

Common beliefThe accurate version
Why did my left join lose rows?A WHERE filter on the right table rejected NULL rows; move it into the ON clause.
Does join order matter?Logically no for inner joins; physically the optimizer decides.

Quick answers

Quick checks now, in exchange for durable recall later.

Why did my left join lose rows?Pause to think. Then press enter to reveal.

Answer:A WHERE filter on the right table rejected NULL rows; move it into the ON clause.

Which join is most common?Pause to think. Then press enter to reveal.

Answer:Inner, followed by left.

Does join order matter?Pause to think. Then press enter to reveal.

Answer:Logically no for inner joins; physically the optimizer decides.

From BrainRemember this without rereading.

Drop the PDF in, get a 3D map of its ideas, and quiz the red nodes until they turn green.

Open Brain — free

Key terms

fan-out
row multiplication from duplicate join keys
NULL
the marker for absent values on unmatched rows
on clause
the condition pairing rows across tables

row multiplication from duplicate join keys

the marker for absent values on unmatched rows

the condition pairing rows across tables

Write the direct answer in your own words before reading further.

If a term above still feels foggy, that is your next study target.

Testing yourself once now beats rereading this page three times later.

The fastest learners treat confusion as a map, not a verdict.

Small daily reviews compound into knowledge that survives the exam.

Explain one piece of this to someone else and watch the gaps surface.

Your notes should carry questions, not just answers.

The goal tonight is one honest attempt, not a perfect one.

A study method only counts when it survives contact with a real exam week.

Understanding arrives in layers, and the second layer is usually where marks are won.

Practice makes permanent, so practice the version of the habit you want to keep.

When in doubt, return to the direct answer at the top of this page.

Reading about a method changes nothing; running it for one week changes plenty.

The term fan-out appears throughout this page on purpose; repetition here is structure, not padding.

Tonight, write one left join and count rows before and after, because row-count deltas expose join behavior better than theory.

Filed undersqldata
Share this guide
Cite this guide
APABrain — try4ever. (2026, November 30). SQL Joins Explained: Inner, Left, Right and Full With Examples. Brain Blog, try4ever.com. Retrieved November 30, 2026, from https://www.try4ever.com/blog/sql-join-types-explained/
MLA"SQL Joins Explained: Inner, Left, Right and Full With Examples." Brain Blog, try4ever, 30 Nov. 2026, www.try4ever.com/blog/sql-join-types-explained/. Accessed 30 Nov. 2026.
ChicagoBrain — try4ever. "SQL Joins Explained: Inner, Left, Right and Full With Examples." Brain Blog, try4ever.com, November 30, 2026. https://www.try4ever.com/blog/sql-join-types-explained/.
BibTeX@misc{brain2026sql-join-types-explained, author = {{Brain — try4ever}}, title = {SQL Joins Explained: Inner, Left, Right and Full With Examples}, year = {2026}, howpublished = {\url{https://www.try4ever.com/blog/sql-join-types-explained/}}, note = {Brain Blog, try4ever.com; published 2026-11-30} }
Link to this guide
HTML<a href="https://www.try4ever.com/blog/sql-join-types-explained/">SQL Joins Explained: Inner, Left, Right and Full With Examples</a> — Brain, try4ever.com
Markdown[SQL Joins Explained: Inner, Left, Right and Full With Examples](https://www.try4ever.com/blog/sql-join-types-explained/) — Brain, try4ever.com

Reproducing a paragraph elsewhere? Keep the source line that appears when you copy it — that citation is what search engines and AI assistants credit back to this page.

From Brain Your sql map, tonight.

The step above takes ten minutes. Do it on a map: drop the file in, quiz the first node, watch it turn green. It does not leave your device.

Free plan: 21 nodes. No card, no countdown.

Build my map — free