newphpcoder
11-17-2011, 03:08 AM
Good day!
I have table attendance
fields are:
EMP_NO
DTR
The DTR data has a data of In and Out of employee...
Like for example: Schedule 05:35:00 - 13:35:00
EMP_NO: 1001 DTR: 2011-10-24 05:35:10 //IN
EMP_NO: 1001 DTR: 2011-10-24 05:35:15 // IN
EMP_NO: 1001 DTR: 2011-10-24 13:35:00 // OUT
EMP_NO: 1001 DTR: 2011-10-24 13:40:20 // OUT
As you can see the employee twice IN and also he out twice. How can I get the first In and the last Out? And also how can I get the total hours of employee?
Thank you so much...
I have table attendance
fields are:
EMP_NO
DTR
The DTR data has a data of In and Out of employee...
Like for example: Schedule 05:35:00 - 13:35:00
EMP_NO: 1001 DTR: 2011-10-24 05:35:10 //IN
EMP_NO: 1001 DTR: 2011-10-24 05:35:15 // IN
EMP_NO: 1001 DTR: 2011-10-24 13:35:00 // OUT
EMP_NO: 1001 DTR: 2011-10-24 13:40:20 // OUT
As you can see the employee twice IN and also he out twice. How can I get the first In and the last Out? And also how can I get the total hours of employee?
Thank you so much...