Q&A for Drupal developers and administrators
SELECT TOP 100 SUM(V.BountyAmount) as 'Bounty Amount', COUNT(*) as 'Amount of Bounties', V.PostId AS [Post Link] FROM Votes V INNER JOIN Posts P ON P.id = V.PostId WHERE P.PostTypeId = 2 AND V.VoteTypeId=9 GROUP BY V.PostId ORDER BY 'Bounty Amount' DESC