Calculating Running Totals and Cumulative Sums with GROUP BY and Subqueries | Wicked Smart Data