Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT TOP(5) r.Id, r.[Name], COUNT(c.Id) AS Commits
- FROM Commits AS c
- JOIN Repositories AS r ON c.RepositoryId = r.Id
- GROUP BY r.Id, r.[Name]
- ORDER BY Commits DESC, r.Id, r.[Name]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement