Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

LEFT JOIN vs INNER JOIN

EasySQL & Data Manipulation00:00
I
Practice interviewer
Your interviewer
In session
I
Interviewer

Welcome to your interview.

The question is on your right: LEFT JOIN vs INNER JOIN. Take a moment with it first.

Talk your thinking through with me if you like - when you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes). Discussion and graded submissions share your five interviewer interactions, so spend them well.

You need to log in / sign up to chat or submit.

Problem

Context

Join choice directly affects row counts, missing values, and business conclusions in analytics work. In card member and merchant reporting, using the wrong join can silently exclude important records.

Core question

Explain the difference between an INNER JOIN and a LEFT JOIN in PostgreSQL. You should describe what rows each join returns, how unmatched rows are handled, and how NULL values appear in the result. Use a simple example such as joining Amex card members to transactions or offers to redemptions.

Scope guidance

The interviewer is looking for a clear conceptual explanation rather than a complex query. A strong answer should define both joins, compare their outputs, explain when you would choose each one, and mention a common mistake such as filtering a LEFT JOINed table in the WHERE clause and accidentally turning it into an INNER JOIN.