Latest Commit Build Cost
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L5
Problem
We need a CI cost attribution model. For each commit author, identify the repo they most recently committed to that also has CI build history. Then total up all build durations for that repo. Return each author and their total build seconds, alphabetically by author.
Summary
The latest commit came with a build cost.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.