SQL – NULL Handling
Practice SQL NULL handling interview questions. Cover IS NULL, COALESCE, NULL in aggregations, and common pitfalls. Write queries and receive feedback on correctness and approach. Ideal for beginner SQL interview prep. First 2 questions are free with full feedback.
- Level Junior
- Questions 12
Try any track free — first 2 questions include full AI feedback. Subscribe to finish the track and unlock everything. Type or speak your answer — the first 2 questions include scoring and detailed AI feedback.
Sample sql – null handling interview questions
Preview 6 questions from this track in quiz order. In the full quiz you answer one at a time — type or speak — then get a score and feedback.
-
How do you check if a value is NULL in SQL?
What a strong answer includes
Uses IS NULL, not = NULL.
-
What is the difference between NULL and an empty string?
What a strong answer includes
NULL means unknown; empty string is a value.
-
How do you replace NULL with a default value?
What a strong answer includes
Uses COALESCE or IFNULL.
-
Write a query to find rows where email is NULL.
What a strong answer includes
Uses IS NULL.
-
How do aggregate functions treat NULL?
What a strong answer includes
Most ignore NULL (except COUNT(*)).
-
Why does WHERE column = NULL not work?
What a strong answer includes
NULL comparisons return unknown.