I was trying to find the cumulative value on a table with employee_name and salary it is 10 years data ..... so how can i find cumulative sum for each individuals .... not just adding adding all the employees ......
For Eg :
EMPLOYEE SALARY
JAMES 100
JAMES 100
JAMES 100
SAM 100
SAM 100
SAM 400
This is my table:
I was trying to make it as:
EMPLOYEE SALARY CUMULATIVE_SUM
JAMES 100 100
JAMES 100 200
JAMES 100 300
SAM 100 100
SAM 100 200
SAM 400 600
How can I get a result like this?