Top 20 most generous users: bounties awarded

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

-- Show top 20 most generous users: bounties awarded
-- Minimum of 50 reputation required (removes low rep users, Community and
-- sin-binned users)

SELECT
  TOP(20)
  Users.Id [User Link],
  Users.DisplayName,
  Users.Reputation,
  (SELECT SUM(BountyAmount) FROM Votes WHERE Votes.UserId = Users.Id) as TotalBountiesAwarded,
  (SELECT SUM(BountyAmount) FROM Votes WHERE Votes.UserId = Users.Id)*100/Users.Reputation as BountyPercentage
FROM Users
WHERE
  (SELECT SUM(BountyAmount) FROM Votes WHERE Votes.UserId = Users.Id) > 0 -- ensure a bounty has been awarded
  -- exclude Community and sin binned users
  -- minimum amount here to qualify for this?
  AND Users.Reputation > 50 
ORDER BY 
  BountyPercentage DESC

Enter Parameters

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