I am trying to get a report to group 2 rows together so I can do some calculations on them. The report has several fields that group together to match up the rows but I can't figure out how to only select two rows. Below is a sample of what the report looks like.
What I need it to look like is like this:
So I am not sure what is the best way to go about getting the results I want.
Any suggestions or help would be greatly appreciated.
PHP:
Job_No Object_No Task_No Employee_No Task Employee Date Time Status
J000153 P000001 T0030 E0005 SAMPLE CHRISC 12/15/2009 11:47 IN
J000153 P000001 T0030 E0005 SAMPLE CHRISC 12/15/2009 12:14 OUT
J000153 P000001 T0030 E0005 SAMPLE CHRISC 12/15/2009 14:51 IN
J000153 P000001 T0030 E0005 SAMPLE CHRISC 12/15/2009 15:34 OUT
J000153 P000001 T0030 E0005 SAMPLE CHRISC 1/29/2010 12:45 IN
J000153 P000001 T0030 E0005 SAMPLE CHRISC 1/29/2010 13:12 OUT
J014516 P000001 T0001 E0011 PREP TAWNYA 11/23/2009 14:59 IN
J014516 P000001 T0001 E0011 PREP TAWNYA 11/23/2009 15:03 OUT
What I need it to look like is like this:
PHP:
Job_No Object_No Task_No Employee_No Task Employee Date Time Status
J000153 P000001 T0030 E0005 SAMPLE CHRISC 12/15/2009 11:47 IN
J000153 P000001 T0030 E0005 SAMPLE CHRISC 12/15/2009 12:14 OUT
Time: 27 min
J000153 P000001 T0030 E0005 SAMPLE CHRISC 12/15/2009 14:51 IN
J000153 P000001 T0030 E0005 SAMPLE CHRISC 12/15/2009 15:34 OUT
Time: 43 min
J000153 P000001 T0030 E0005 SAMPLE CHRISC 1/29/2010 12:45 IN
J000153 P000001 T0030 E0005 SAMPLE CHRISC 1/29/2010 13:12 OUT
Time: 27 min
J014516 P000001 T0001 E0011 PREP TAWNYA 11/23/2009 14:59 IN
J014516 P000001 T0001 E0011 PREP TAWNYA 11/23/2009 15:03 OUT
Time: 4 min
So I am not sure what is the best way to go about getting the results I want.
Any suggestions or help would be greatly appreciated.