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)

Ask Different

Q&A for power users of Apple hardware and software

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 to meta site
loading Hold tight while we fetch your results