Top bounty earners per tag


Please login or register to vote for this query.

(click on this box to dismiss)

Operations Research Meta

Q&A about the site for operations research and analytics professionals, educators, and students

SELECT TOP(##num?500##)
p.OwnerUserId AS [User Link],
SUM(bs.BountyAmount) AS [Rep from bounties],
COUNT(bs.BountyAmount) AS [Number of bounties]
FROM Posts p INNER JOIN Votes bs 
  ON (p.Id = bs.PostId) AND (bs.VoteTypeId = 9)  -- BountyClose
  INNER JOIN PostTags pt ON p.ParentId = pt.PostId
  INNER JOIN Tags t ON pt.TagId = t.Id
GROUP BY p.OwnerUserId, p.OwnerDisplayName, t.TagName      
ORDER BY SUM(bs.BountyAmount) DESC

Enter Parameters

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