Hello super stars stackoverflow ...
Here is my problem. I have a stored procedure that outputs a fairly simple table of grouped and summed values. Typical material ... company name, number of customers in the company, sales representative of the company, annual income for the company, etc.
It works great.
Now I need a summary line. The last line of exit should be the sum of the number of customers, annual income, etc. The view of the same action that you would do by clicking the autosum button in excel. (Which by the way is exactly what we are doing now.)
My assumption is to insert all the data in the temporary table into the stored procedure, and then insert the totals at the very end before splashing out the data.
Thoughts? Is it too confusing?
Thanks,
source share