All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
Data Engineering · SQL · Hard
SQL interview question: Timezone Trouble
How many orders were placed on 2026-11-12 in India (IST)? The till and the database disagree about the date.
The problem
- How many orders were placed on 2026-11-12 in India (IST)?
You'll use: SQL (SQLite) · SELECT & WHERE · JOIN · GROUP BY · TRIM & datetime() · Data cleaning
Solve it (expert level)3–6 min · You write SQL
Show a hint
The column name says it all: _utc.
What this teaches (spoiler)
Store timestamps in UTC, but convert to the business's time zone before grouping by day.