Friends,
I need to calculate the running sum of the time difference. I know how to do it for numbers, but for time fields i have no clue,
sample table:
ID Start time End time
1 10:15 11:05
2 11:45 12:05
3 12:45 13:00
4 2:50 3:00
5 23:05 2:05
Sample query:
ID Start time End time TimeDiff RunningSum
1 10:15 11:05 00:50 00:50
2 11:45 12:05 00:25 01:15
3 12:45 13:00 00:15 01:30
4 2:50 3:00 00:10 01:40
5 23:05 2:05 3:00 4:40
Could you please give me a hint?
Thanks
I need to calculate the running sum of the time difference. I know how to do it for numbers, but for time fields i have no clue,
sample table:
ID Start time End time
1 10:15 11:05
2 11:45 12:05
3 12:45 13:00
4 2:50 3:00
5 23:05 2:05
Sample query:
ID Start time End time TimeDiff RunningSum
1 10:15 11:05 00:50 00:50
2 11:45 12:05 00:25 01:15
3 12:45 13:00 00:15 01:30
4 2:50 3:00 00:10 01:40
5 23:05 2:05 3:00 4:40
Could you please give me a hint?
Thanks
