I have a table with 4 time fields. from these 4 fields I get totals. What I want to do is breakup the totals depending on which department did the work. So Basically I will have fours total fields.
time1 / Dept /
60 ---/ A
time2 / Dept /
30 -- / B
time3 / Dept /
20 ---/ A
time4 / Dept /
45 ---/ C
Total A | Total B | Total C | Total D
80 -----| 30 ----| 45 -----| 0
What would be the best way round this.