Q&A for professional and enthusiast programmers
SELECT YEAR(v.CreationDate) AS [YEAR], SUM(v.BountyAmount) AS TotalBountyAmount FROM Votes v WHERE v.VoteTypeId = 8 -- BountyStart AND v.UserId = ##UserId## GROUP BY YEAR(v.CreationDate)