Your question is Choosing INNER vs LEFT JOIN. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
You’re working on the analytics platform for a large e-commerce marketplace (~10M orders/day, millions of monthly active buyers). Multiple teams consume curated datasets: Finance needs revenue reporting that must not undercount orders; Growth needs funnel metrics that must include users who didn’t convert; and Trust & Safety needs to find sellers with missing compliance documents. In this environment, choosing the wrong join type can silently drop rows, leading to incorrect KPIs, misallocated marketing spend, or even regulatory reporting errors.
Explain the difference between an INNER JOIN and a LEFT JOIN in SQL, and when you would use each.
In your answer, address:
WHERE clause on the right table can accidentally turn a LEFT JOIN into an INNER JOIN, and how to avoid it.