Hi All,
One of my friends wanted to find out number of rows returned by a query while he was using group by statement in it.
I found a interesting way to get this while I was browsing google.. here is the query to return count of number of rows while using group by,
Select count(count1) from (SELECT Count(*) as count1 from TABLE where CONDITION B group by Fieldname) t1
Regards,
Karan
Thursday, May 7, 2009
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2009
(21)
-
▼
May
(14)
- Native Client: Google's craziest idea yet
- Precedence Diagramming Method - PDM
- Activity on Arrow or Arrow Diagram
- Work Authorization System
- Work Performance Information
- Project Selection Methods
- Rolling Wave Planning and Progressive Elaboration
- Process Groups and Knowledge areas
- PMP Common Estimating Tools and Techniques
- Monte Carlo Simulation
- Android, What is it????
- Shortcut keys
- Everything you need to know about Network Load Bal...
- Efficient way to count rows when using GROUP BY
-
▼
May
(14)

No comments:
Post a Comment