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

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your sql solution with real code execution
  4. Get instant feedback and a hire/no-hire decision