All jobs / Data analyst / BI / SQL

Data analyst / BI interview question · 0–1 years

You LEFT JOIN orders, then WHERE orders.status = 'paid'. What did you just do?

The strongest answer

Turned the LEFT into an INNER — unpaid and no-order customers disappear; I filter in the join or keep NULLs on purpose

Why it works

Exactly. A WHERE on the right side drops the unmatched. That is an INNER with extra steps.

What a good answer covers

Answers that fall short

Who gets asked this

More SQL questions