I've got a SQL statement that returns the following rows:
CCode TotalTime
AATC 22
ACG 60
ACG 30
ACG 1480
ACG 22
AFL 50
ASA 20
I would like to know how I can sum up the TotalTime for each CCode and only show that, so it would look like:
CCode TotalTime
AATC 22
ACG 1592
AFL 50
ASA 20
How can this be done? I would post the SQL but it has some joins and the field names are not very friendly so I just changed them in here to make more sense.....but I can post it if necessary.
CCode TotalTime
AATC 22
ACG 60
ACG 30
ACG 1480
ACG 22
AFL 50
ASA 20
I would like to know how I can sum up the TotalTime for each CCode and only show that, so it would look like:
CCode TotalTime
AATC 22
ACG 1592
AFL 50
ASA 20
How can this be done? I would post the SQL but it has some joins and the field names are not very friendly so I just changed them in here to make more sense.....but I can post it if necessary.