I have a store procedure with the result like this:
Aaa Bbb Ccc Ddd Eee Average
2 7 5 4 5 5
And I have another store procedure with the result like this:
Fff Ggg Hhh Iii Jjj Kkk Average
28 6 7 5 6 6 6
Now I wanna have the average of two average column above!
What can I do?
just notice that these two store procedures are the result of different tables!
try something like this:
Insert both results in a temp table and calculate the average from the temp table
SQL Fiddle demo
Another option would be to make the Average variable in both the procedure as OUTPUT parametrer and store the outputs from both the procedure in to variables and calculate the average from the variables