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: Who Opened the Door
Who opened a Hub B door between 22:35 and 06:00 IST? The door logs know. If you can read their clock.
The problem
- Who opened a Hub B door between 22:35 and 06:00 IST?
You'll use: SQL (SQLite) · SELECT & WHERE · JOIN · GROUP BY · TRIM & datetime() · Data cleaning
Solve it free in your browser3–6 min · You write SQL
Show a hint
Look at the column name: opened_at_utc. The theft window is in IST.
What this teaches (spoiler)
Always know which timezone a timestamp is in. Store UTC, convert at the edges, and name columns so nobody has to guess.