Loading...
Commit Cadence
A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- hard
Problem
The engineering manager wants to flag repos with infrequent commit activity. For each repository, compute the average gap in days between consecutive commits. Only include repos whose average gap exceeds 5 days, and rank them by how inactive they are, widest average gap first. Return the repo name, average gap, and inactivity rank.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a live PostgreSQL database and grades it instantly.