Is it possible to sum the duration based on the number of minutes one time stamp (start, stop) within an second?
This is what I would want to do.. return the number of minutes an employee was sick during their overtime shift. The records are in segments... a sick exception may not always be within an overtime shift.
All rows would be within the same table exceptions
.
Employee Exception Start Stop
Bob OverTime 09:00 17:00
Jim OverTime 14:00 16:00
Mark OverTime 14:00 18:00
Steve OverTime 10:00 14:00
Employee Exception Start Stop
Bob Sick 09:00 09:30
Bob Sick 14:00 17:00
Jim Sick 14:00 16:00
Results:
Bob: 3.5 hours
Jim: 2 hours