This should help you understand. You get a table with a bunch of values column (value1, value2, value3, value4, value5 and such) . It initially doesn't have an average column and looks like this:
------------------------------------------------------
| value1 | value2 | value3 | value4 | value5 |
-------------------------------------------------------
| 10000 | 15000 | 20000 | 25000 | 30000 |
------------------------------------------------------
| 10100 | 15100 | 20100 | 25100 | 30100 |
------------------------------------------------------
| 10200 | 15200 | 20200 | 25200 | 30200 |
------------------------------------------------------
at some stage you then need to also have an 'average' column in the table to compute and store the average of the values. After adding the 'average' column, each row looks like this. All data type for both values and average =int:
------------------------------------------------------------------
| value1 | value2 | value3 | value4 | value5 | average |
------------------------------------------------------------------
| 10000 | 15000 | 20000 | 25000 | 30000 | 0 |
------------------------------------------------------------------
| 10100 | 15100 | 20100 | 25100 | 30100 | 0 |
------------------------------------------------------------------
| 10200 | 15200 | 20200 | 25200 | 30200 | 0 |
------------------------------------------------------------------
So what is needed is to have the average for each of the rows populated based on data in the values fields and should then look something like this:
------------------------------------------------------------------
| value1 | value2 | value3 | value4 | value5 | average |
------------------------------------------------------------------
| 10000 | 15000 | 20000 | 25000 | 30000 | 20000 |
------------------------------------------------------------------
| 10100 | 15100 | 20100 | 25100 | 30100 | 20100 |
------------------------------------------------------------------
| 10200 | 15200 | 20200 | 25200 | 30200 | 20200 |
------------------------------------------------------------------
Do you understand?