I have a table t1 with the following data:
Slsp dayOfMonth quota
PAM 1 1000
PAM 2 1100
PAM 3 1050
PAM 4 1150
PAM 5 1090
PAM 6 1110
PAM 7 1120
PAM 8 1000
PAM 9 1050
PAM 10 1110
…
I would like to create a select from t1 with the following results:
Slsp cumDay cumQuota
PAM 1 1000
PAM 2 2100
PAM 3 3150
PAM 4 4300
PAM 5 5390
PAM 6 6500
PAM 7 7620
PAM 8 8620
PAM 9 9670
PAM 10 10780
…
each day the Quota adds to the previous day. This will be used in a chart to help salesmen meet their monthly quota.