Skip to content
Advertisement

finding sum of values found from a query

I have a query which returns two rows of data as count. I want to find sum of the column values. My sql:

I have tried using Select Sum(my above query) but I am getting error. I just need some of above values.

Advertisement

Answer

Can grab both result sets in a single query:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement