I am trying to get a list, a total, and a cumulative total in the same column. So far I have the list and the total for that date range, but moving forward I would like to get a cumulative total. Here is the code i'm using, please note temp_2 and temp_3 yield the same results;
Select School,Principal, NumberOfObs
From temp_2
Union
Select '','TOTAL',Sum(NumberOfObs)
From temp_3;
Any thoughts?