rhenderson2
IS-IT--Management
Hi,
I have a table:
itemNum, mmddyy, duration(hours), incidentType(string)
01, 2/1/04, 4, fault
02 3/4/04, 3.5, process
I need an ms sql query to sum duration and # of "types"
for each month, even when the month has no data. This is for a fusioncharts graph. It will display sum of duration (hours) and number of incidentTypes for each month and vertical bars.
eg: Jan 4 hours 1 incident Type=fault
so I need to feed the chart making program the above data for each month.
Thanks for any help!
Rudy.
I have a table:
itemNum, mmddyy, duration(hours), incidentType(string)
01, 2/1/04, 4, fault
02 3/4/04, 3.5, process
I need an ms sql query to sum duration and # of "types"
for each month, even when the month has no data. This is for a fusioncharts graph. It will display sum of duration (hours) and number of incidentTypes for each month and vertical bars.
eg: Jan 4 hours 1 incident Type=fault
so I need to feed the chart making program the above data for each month.
Thanks for any help!
Rudy.