Q&A for professional and enthusiast programmers
-- Top Users by Number of Bounties Won SELECT Top 100 Posts.OwnerUserId As [User Link], Posts.OwnerUserId, Posts.OwnerDisplayName, COUNT(*) As BountiesWon FROM Votes INNER JOIN Posts ON Votes.PostId = Posts.Id WHERE VoteTypeId=9 GROUP BY Posts.OwnerUserId, Posts.OwnerDisplayName ORDER BY BountiesWon DESC