Loading...

Top Committers in 2025

A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
medium

Problem

Within repo_commits scoped to year 2025, group by strftime('%Y-%m', commit_at) and rank commits by added descending with a no-gaps rank. Keep rows with rank 10 or less. Per author, count how many of their rows land in that top-10 set across all months. Return one row: the author with the highest count and that count. Break ties alphabetically by author.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.