I have a stored procedure that I need to write where I need to join two tables, sum a field in each of the tables. I then need to add those two sum fields together to get one total to return to the program that called the stored procedure. I know how to work the Sum function but I don't know how to access the results of the Sum to add it together for the total.
any ideas?
any ideas?