Where the Minutes Go
A hard SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- L5
Interview Prompt
Our analytics warehouse stores one row per page view, tagged with the visitor's device and how long they stayed on the page. Build a leaderboard of device types by total time on page, biggest first, and next to each device show the cumulative share of overall time the leaderboard has accounted for through that row.
Summary
Attention piles up device by device. Find where it pools.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your sql solution with real code execution
- Get instant feedback and a hire/no-hire decision