Thanks to everyone who has helped me on this jury project over the past 6 months or so!! I'm on one of the last pieces and I'm not sure how to gather the information in the correct format. I have a query that returns the name, address, and roundtrip miles for each person that needs to be processed. For each person in that dataset, I run a second query that returns the days each person worked with the time in and out.
JurNum ServDate TimeType TimeIO
757 20021223 OI 0830
757 20021223 OO 1030
757 20021226 TI 0900
757 20021226 TO 1100
757 20021230 TI 0900
757 20021230 TO 1400
I need to take the above information and come up with:
20021223 2.0
20021226 2.0
20021230 5.0
Total Hours 9.0
Number of Trips = 3 (they came to the courthouse 3 days)
RTM = 16
Total Miles : 48
Does anyone have any suggestions on the best way to calculate the hours worked and figure out how many trips the person made? Thanks!! Leslie
landrews@metrocourt.state.nm.us
SELECT * FROM USERS WHERE CLUE > 0
No Rows Returned
JurNum ServDate TimeType TimeIO
757 20021223 OI 0830
757 20021223 OO 1030
757 20021226 TI 0900
757 20021226 TO 1100
757 20021230 TI 0900
757 20021230 TO 1400
I need to take the above information and come up with:
20021223 2.0
20021226 2.0
20021230 5.0
Total Hours 9.0
Number of Trips = 3 (they came to the courthouse 3 days)
RTM = 16
Total Miles : 48
Does anyone have any suggestions on the best way to calculate the hours worked and figure out how many trips the person made? Thanks!! Leslie
landrews@metrocourt.state.nm.us
SELECT * FROM USERS WHERE CLUE > 0
No Rows Returned