I have a problem by counting by row in my database.
I have a table with 2 columns: 2011 with its values and 2012 with its values and total column:
table Books:
2011 2012 TOTAL
1 2 ?
6 9 ?
4 10 ?
56 12 ?
how can I sum(1+2), sum (6+9) and write the results in the “TOTAL”-column for each row?
This should be pretty straightforward, do not use
SUM()UPDATE