Top Users by Number of Bounties Won

0

Please login or register to vote for this query.

(click on this box to dismiss)

Philosophy Meta

Q&A about the site for those interested in the study of the fundamental nature of knowledge, reality, and existence

-- Top Users by Number of Bounties Won

SELECT Top 200
ROW_NUMBER() OVER(ORDER BY SUM(Votes.BountyAmount) DESC) AS Row,
  Posts.OwnerUserId As [User Link],
  COUNT(*) As BountiesWon,
  SUM(Votes.BountyAmount) as TotalBountiesEarned
FROM Votes
  INNER JOIN Posts ON Votes.PostId = Posts.Id
WHERE
  VoteTypeId=9
GROUP BY
  Posts.OwnerUserId
ORDER BY
  TotalBountiesEarned DESC

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results