Loading interview...
Early Commit Velocity by Author
A medium SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- staff
Interview Prompt
Given a user_sessions table (with duration and start time) and a devices table (with vehicle type and registration date), write a query to compute the average session duration by vehicle type, but only for sessions that started within the first year of the vehicle's registration.
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