I've got a mental block. If I have a table that looks like this...
id, value1, value2, value3, total
1,1,1,1,[?]
2,2,5,4,[?]
3,4,1,1,[?]
What query could be used to update the value in the 'total' column as the sum of each row's value for 'value1', 'value2', and 'value3'?
The results I am seeking to replace [?] would be:
3
11
6
id, value1, value2, value3, total
1,1,1,1,[?]
2,2,5,4,[?]
3,4,1,1,[?]
What query could be used to update the value in the 'total' column as the sum of each row's value for 'value1', 'value2', and 'value3'?
The results I am seeking to replace [?] would be:
3
11
6