Q&A for professional and enthusiast programmers
SELECT v.CreationDate, SUM(v.BountyAmount) over (order by v.CreationDate) as Cumulative -- 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)