Last Migration Record
An easy SQL mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.
- Domain
- SQL
- Difficulty
- easy
- Seniority
- L3
Interview Prompt
The migration holding the maximum ID in `migrations` shipped a version that has often run on other databases too. For the platform team's release check, return the full record of every migration that ran that same version.
Summary
The most recent migration. Is it the last?
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write and run your SQL against a real database
- Answer the interviewer's follow-up questions, then get a hire or no-hire decision