lyleatmark
MIS
I have a table with many entries of dates within a particular month. I want a query that will sum all of the data for all the months.
QTY_5_NEW QTY_10_NEW QTY_20_NEW DATE
0 0 0 1/1/2006
0 0 3000 1/1/2006
0 0 3000 10/1/2006
0 0 10000 12/1/2006
12000 0 0 2/2/2006
0 1000 5000 21/2/2006
0 10000 0 2/3/2006
0 4000 0 1/4/2006
I want it like this
QTY_5_NEW QTY_10_NEW QTY_20_NEW DATE
0 0 16000 jan 2006
12000 1000 5000 feb 2006
0 10000 3000 mar 2006
QTY_5_NEW QTY_10_NEW QTY_20_NEW DATE
0 0 0 1/1/2006
0 0 3000 1/1/2006
0 0 3000 10/1/2006
0 0 10000 12/1/2006
12000 0 0 2/2/2006
0 1000 5000 21/2/2006
0 10000 0 2/3/2006
0 4000 0 1/4/2006
I want it like this
QTY_5_NEW QTY_10_NEW QTY_20_NEW DATE
0 0 16000 jan 2006
12000 1000 5000 feb 2006
0 10000 3000 mar 2006