I have one table name checkinout in which all the record of employee punch is recorded.
look like:
EMP_id time in/out
-------- --------------- -------
11 8/19/2013 08:19 I
11 8/19/2013 12:37 O
11 8/19/2013 13:29 I
11 8/19/2013 14:19 O
11 8/19/2013 16:48 I
11 8/19/2013 18:44 O
I want to calculate the difference in time of each I and O (one by one)
eg: First I =08:19
First O=:12:37
so 08:19-12:37=difference in time
so on for second and third.
See Question&Answers more detail:os