Explain it in 60 seconds
NULLs in sorting, grouping and aggregates
Data Analyst · SQL for Analytics · Intermediate
How do NULLs behave in ORDER BY, GROUP BY and aggregate functions, and why does it matter?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- GROUP BY puts all NULLs in one group.
- ORDER BY NULL position varies (NULLS FIRST/LAST).
- AVG ignores NULLs (denominator shrinks).
- COUNT(col) skips NULLs.
- Decide explicitly with COALESCE.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.