Q&A for people studying math at any level and professionals in related fields
SELECT u.DisplayName, COUNT(b.Id) AS BadgeCount FROM Badges b JOIN Users u ON b.UserId = u.Id GROUP BY u.DisplayName ORDER BY BadgeCount DESC;