wheels0323
Programmer
Code:
select
personnum,
timeinseconds,
wageamount,
applydate,
startdtm,
enddtm
from vp_totals
where personnum = '103786'
and applydate >= '2008-11-30 00:00:00.000'
and applydate <= '2008-12-06 00:00:00.000'
and paycodename = '01 REG'
Let's say I have the following code. The attachment file is a picture of the results after a run.
I want to add the 'timeinseconds' column by record in a seperate column. I don't want total. I want it to add. So after looking at the results the first record would show 2220. The 2nd record would show 10980 (because 22200 plus 8760. Then so on till the end which would be the grand total for that person.
How would I do that with SQL code to add just in increments by record?
Thanks for your time.