Stumbling Out of the Gate
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
- L4
Interview Prompt
Every model version goes through a series of training runs. We want to know how often a version stumbles right out of the gate. For each model version (a unique combination of mdl_name and version), find its very first training run, ordered by train_at. Of those first runs, what percentage ended with a status of 'failed' (status casing is inconsistent in the data)? Only count runs that actually recorded an accuracy score, since a null accuracy means the run never produced a usable metric and should not be considered a real first run. Return a single percentage.
Summary
Some model versions never recover from a bad opening run.
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