I have a table with 4 fields, A,B,C and D.
Would like to sum up individually the values of B,C and D and GROUP BY A,
I tried using Sum and Group By, but to no avail.
Is there a single SQL statement which can achieve this?
Thanks,
John
Would like to sum up individually the values of B,C and D and GROUP BY A,
Code:
For example Input is
A B C D
1 3 4 1
1 1 1 3
3 4 7 2
3 8 4 3
5 3 5 1
Output should be
1 4 5 4
3 12 11 5
5 3 5 1
Is there a single SQL statement which can achieve this?
Thanks,
John