This is my query
SELECT
B.name,B[work_date],B.work_day,B[start_week],B.hours,B.prjname,
B.prj_number,
(SELECT SUM(A.hours) FROM [timesheet] A WHERE A.[local_date]<=B.[local_date]
AND B.name=A.name AND A.[start_week]=B.[start_week]
)cumulative
FROM [timesheet]
ORDER BY B.name,B.work_date,B.prj_number
so I am getting this
Name Work_date Work_day start_week hours Cumulative PrjName PrjNumber
James 7/13/15 Mon 7/13/15 5.5 12 ProjectA 1
James 7/13/15 Mon 7/13/15 4.25 12 Project B 2
James 7/13/15 Mon 7/13/15 2.25 12 Project C 3
I did not complete, I am sorry I wanted to add that is you see the cumulative, its adding all the 3 row, instead of summing each row.