Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Summation in SQL query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-06-11 : 21:34:54
Mehul Parikh writes "Respected Sir,

I have a query which goes as follows:

"select count(*) as sum1 FROM MEMBER WHERE MEMBER_REGISTERDATE='06/06/01' and MEMBER_TYPE IN(2,4,5,6) GROUP BY MEMBER_TYPE"

I have the output as follows:

sum1
-----------
26
21
69
62

(4 row(s) affected)

I want to write a single SQL query in which I can also find the total of all the rows in the sum1 table.

Kindly send me the answer.

Mehul."
   

- Advertisement -