Last Migration Record
A easy SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- easy
- Seniority
- L3
Problem
We need to verify the latest schema migration applied to the database. Find the most recently applied migration, identified by the largest migration ID. Show all available fields: migration ID, version, status, applied date, rollback info, duration, author, and database name.
Summary
The most recent migration. Is it the last?
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.