T-SQL Query to Get SUM(COUNT())

Posted by Ted on Stack Overflow See other posts from Stack Overflow or by Ted
Published on 2010-05-19T14:04:09Z Indexed on 2010/05/19 14:10 UTC
Read the original article Hit count: 136

Filed under:
|

Hi,

I am planning to get a report for a table with following table structure:

ID              RequestDate
-----------------------------
1               2010/01/01
2               2010/02/14
3               2010/03/20
4               2010/01/07
5               2009/03/31

I want the results as: I

D_Count    RequestDate               Sum
-----------------------------------------
2               2010/01              2
1               2010/02              3
2               2010/03              5

Pls help.

© Stack Overflow or respective owner

Related posts about sql

Related posts about query