hi..
i want to calculate variance of row..for example salary of employee
emp_code | month | basic | hra | splall | da | lta |
a001 | jan | 10000 | 5000 | 5000 | 8000 | 7000 |
a001 | feb | 10000 | 4000 | 5000 | 7000 | 9000 |
a001 | diff | 0 | -1000 | 0 | -1000 | 2000 |
first two row are in table, i have to get third row for all emp. as above format...fields may increase/ decrease..
please help...