Interview practice question
Rows disappear after joining on a nullable column
Data Analyst · SQL for Analytics · Intermediate
After joining orders to promotions on promo_code, many orders disappeared from your results. Why?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Inner join drops non-matching rows.
- Orders without promo (NULL) never match.
- Use LEFT JOIN.
- NULL = NULL is not true.
- Check counts before/after.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.