Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation
-- SELECT ROW_NUMBER() OVER(ORDER BY b.Date DESC), b.UserId user_id, b.Date got_gold_python, u.DisplayName name -- FROM Users u, Badges b -- WHERE b.class=1 and u.Id=b.UserId -- GROUP BY b.Date, b.UserId, u.DisplayName SELECT TOP 20 UserId AS [User Link], COUNT(*) FROM Badges b WHERE b.TagBased=1 and b.class=1 GROUP BY UserId ORDER BY COUNT(*) DESC