Programming · Flashcard
10 customers, 4 with orders. How many rows does a LEFT JOIN give?
Why this is the answer
A LEFT JOIN keeps all ten left-hand rows and fills the right-hand columns with NULL where nothing matched. Four is the inner join, six is what you get by adding WHERE orders.id IS NULL, and fourteen would need a FULL OUTER JOIN with unmatched rows on both sides.
Read more in the docs