What is the difference between INNER JOIN and LEFT JOIN?

2 stars Asked often.

In one or two sentences
INNER JOIN keeps only rows with a match on both sides. LEFT JOIN keeps every left row and fills right columns with NULL when there is no match.

Think of your own answer first

Say it out loud, or type it below. What you type never leaves this device.

Follow-up questions

These are likely next questions from an interviewer. Think of your answer first, then press the button.

  1. 1 / 3

    Why is a right table condition in WHERE a problem with LEFT JOIN?

Sources checked