User Bounties over Time

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT 
v.CreationDate,
SUM(v.BountyAmount) over (partition by v.Id 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)

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results