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)
 Monthly Summery (Query Needed)

Author  Topic 

kamalkishore_in
Yak Posting Veteran

76 Posts

Posted - 2001-09-11 : 04:02:40
Hi Guys
I am having a table with the folling

dt,code,amt
2001/01/15,1,10
2001/01/12,1,50
2001/01/13,1,30
2001/02/10,1,20
2002/01/25,1,40

and I want a monthly report with the year, month and day '01' group on Code

for example :

dt,code,amt
2001/01/01,1,90
2001/02/01,1,20
2002/01/01,1,40

I need a single query if possible.
Waiting....


   

- Advertisement -