Interview practice question
Orders missing from the last day of the month
Data Analyst · SQL for Analytics · Beginner
Your query uses WHERE order_date BETWEEN '2025-03-01' AND '2025-03-31' on a timestamp column, and orders from 31 March are missing. Why?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- '2025-03-31' means midnight at start of day.
- BETWEEN is inclusive but excludes later times.
- Use >= start AND < next day.
- Applies to timestamps not dates.
- Half-open ranges avoid errors.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.