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;