I have table like this:
id valueA valueB ValueC
--------------------------
1 2 3 1
2 3 2 0
3 1 2 2
I would like to get:
id valueA valueB ValueC GSumABC
----------------------------------
1 2 3 1 6
2 3 2 0 11
3 1 2 2 16
What would be the best way to do this? Using temporary tables, joins or something else?