Amount of my bounties by tag


Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers Meta

Q&A about the site for Drupal developers and administrators

  SUM(v.BountyAmount) [Reputation offered] 
FROM Votes v INNER JOIN Posts p ON v.PostId=p.Id
  INNER JOIN PostTags pt ON p.Id = pt.PostId
  INNER JOIN Tags t ON pt.TagId = t.Id
WHERE (v.VoteTypeId=8) AND (v.UserId=##userid##) 
GROUP BY t.TagName 
ORDER BY SUM(v.BountyAmount) DESC

Enter Parameters

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