Most rep offered in bounties - only questions which are not deleted

1

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans

Q&A for music historians, critics, and fans

SELECT
  v.UserId AS [User Link],
  SUM(v.BountyAmount) AS [Bounty Amount],
  COUNT(v.BountyAmount) AS [Bounty Count]
FROM PostsWithDeleted q INNER JOIN Votes v ON v.PostId=q.Id
WHERE (v.VoteTypeId=8) --BountyStart
  AND (q.DeletionDate IS NULL)
GROUP BY v.UserId
ORDER BY SUM(v.BountyAmount) DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results