Running total of initial votes vs time in an election

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 b.Date, SUM(COUNT(b.Date)) OVER (ORDER BY b.Date) running 
FROM badges AS b 
WHERE b.Name = 'Constituent' 
  AND b.Date BETWEEN '##ElectionYear##-01-01' 
                 AND '##ElectionYear##-12-31' 
GROUP BY b.Date 
ORDER BY b.Date;

Enter Parameters

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