Explore

SQL JOINs Without the Confusion

by Froga

INNER, LEFT, RIGHT, FULL and CROSS — what each one actually returns, why unmatched rows come back as NULL, and how to stop guessing which one you need.

You're previewing this room. Log in or create a free account to answer the questions and track your progress.
Study material

Picture two overlapping circles. INNER JOIN returns only the overlap — a row appears in the result only if the join condition finds a partner on the other side. Rows without a match are dropped entirely, which is the single most common cause of "my query lost rows".

An INNER JOIN between two tables returns which rows?

multiple choice

Every row from both tables
Only rows with a match in both tables
Every row from the first table only
Only rows with no match in either table
INNER keeps the intersection.
Log in to answer

Ready to test yourself?

Sign up free to answer, score points, and build your streak.