I have a MySQL table with about 100 columns. All columns are INT. I want to be able to select a row by its ID, and get the total number of all of the columns added together.
There are two additional considerations. The field titles vary significantly, so I would like to be able to have it work by referencing the field number, rather than the field title.
Lastly, I would like to potentially be able to specify a range, for example, add total of field 35 through field 76 where id = 50.
Is there a way to do this? Thank you very much!