We are using fingerprint device to record staff attending and leaving time. when we extract the monthly report from the device, we need to manipulate this report to serve our needs. The extracted reports contain four columns (Emp_ID,Emp_name, Date, time),
The device saves a record every time the employee put his/her fingerprint(either for time in or time out), so for every working day the employee must have two records ( we have a problem, some staff have just one record (see 3) we do not know if it is for time in or out, some have double records for time in(see 12,13), some seems like the staff record the time out then he stayed more time then he record another time out (see 17,18,19)
* staff come and leave in different times
I need to calculate the working hours per day for every employee with taking the consideration the points mentioned above.