Need to do a group by on department column and do the sum of total column and the out put should be placed in the next row