Users with most bounties on deleted questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Esperanto Language

Q&A for teachers and students of the Esperanto language

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 NOT NULL)
GROUP BY v.UserId
ORDER BY SUM(v.BountyAmount) DESC

Enter Parameters

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