J
John G
I think I figured it out using your sample data. (I think the numbers are
correct anyhow) I substituted queries AllStart and AllStop for 1 and 2 and
KeepStart and KeepsStop for 3 and 4. If this isn't how it was supposed to
work please let me know.
The issue that I am experiencing now is that I have employees that work
graveyard shifts and thier shift goes from say 08/13/2005 10:00 PM to
08/14/2005 7:00 AM the data is getting mucked up somewhere and I'm getting
negative numbers returned.
Currently my table looks like this:
"ID" "TicketID" "Start" "Stop"
1 123 8/12/2005 8:00:00 8/12/2005 11:00:00
2 123 8/12/2005 9:00:00 8/12/2005 12:00:00
3 123 8/12/2005 14:00:00 8/12/2005 18:00:00
4 123 8/13/2005 9:00:00 8/13/2005 11:00:00
6 123 8/12/2005 8:00:00 8/12/2005 12:00:00
12 123 8/12/2005 14:00:00 8/12/2005 18:00:00
13 123 8/12/2005 8:00:00 8/12/2005 11:00:00
14 123 8/13/2005 9:00:00 8/13/2005 13:00:00
15 123 8/14/2005 22:00:00 8/15/2005 07:00:00
The output is looking like this:
"TicketID" "Start" "Stop" "Total"
123 8/12/2005 8:00:00 8/12/2005 12:00:00 "4.00"
123 8/12/2005 14:00:00 8/12/2005 18:00:00 "4.00"
123 8/13/2005 9:00:00 8/13/2005 11:00:00 "2.00"
123 8/14/2005 9:00:00 8/13/2005 13:00:00 "-20.00"
Thanks,
John G
correct anyhow) I substituted queries AllStart and AllStop for 1 and 2 and
KeepStart and KeepsStop for 3 and 4. If this isn't how it was supposed to
work please let me know.
The issue that I am experiencing now is that I have employees that work
graveyard shifts and thier shift goes from say 08/13/2005 10:00 PM to
08/14/2005 7:00 AM the data is getting mucked up somewhere and I'm getting
negative numbers returned.
Currently my table looks like this:
"ID" "TicketID" "Start" "Stop"
1 123 8/12/2005 8:00:00 8/12/2005 11:00:00
2 123 8/12/2005 9:00:00 8/12/2005 12:00:00
3 123 8/12/2005 14:00:00 8/12/2005 18:00:00
4 123 8/13/2005 9:00:00 8/13/2005 11:00:00
6 123 8/12/2005 8:00:00 8/12/2005 12:00:00
12 123 8/12/2005 14:00:00 8/12/2005 18:00:00
13 123 8/12/2005 8:00:00 8/12/2005 11:00:00
14 123 8/13/2005 9:00:00 8/13/2005 13:00:00
15 123 8/14/2005 22:00:00 8/15/2005 07:00:00
The output is looking like this:
"TicketID" "Start" "Stop" "Total"
123 8/12/2005 8:00:00 8/12/2005 12:00:00 "4.00"
123 8/12/2005 14:00:00 8/12/2005 18:00:00 "4.00"
123 8/13/2005 9:00:00 8/13/2005 11:00:00 "2.00"
123 8/14/2005 9:00:00 8/13/2005 13:00:00 "-20.00"
Thanks,
John G