Hello Everyone.
Please assist me to understand how I would save this information in a database.
I am using the information exported from a Fingerprint reader that is used for Time and Attendance.The csv export has many field but the information I am concerned with is the DATE,TIME,EMPLOYEE NAME,EMPLOYEE ID ,RESULT (success or fail)
The sample information is shown below.We have an employee that will clock in when he arrives for work and clock out for lunch,return and then again clock out
for tea.He will clock in again after tea and finally clock out when he goes home.
Off course there could be other reasons will clock in and out.
I realise I will have to store these raw logs in the database,but I need ideas on how to store information once computed.What I need to do is calculate how many hours an employee worked for the day,then have some method to extract how many hours were worked for a period of 7 days or even 14 days.
Should I have seperate tables for the computed information ? How can I use PHP to compute
the hours worked per day based on the several clocks in and out per employee ?
Any advice will be appreciated.
2014-11-26 07:16:09 James Lolly ED001 Success
2014-11-26 07:17:06 James Lolly ED001 Success
2014-11-26 07:22:18 James Lolly ED001 Success
2014-11-26 07:32:59 Kelly ZA001 Success
2014-11-26 07:34:13 Kelly ZA001 Success
2014-11-26 07:35:56 Suri SP001 Success
2014-11-26 07:50:30 Milo MM001 Success
2014-11-26 07:53:40 Annie ZD001 Success
2014-11-26 07:59:58 Chume TH002 Success
2014-11-26 08:00:33 Chume TH002 Success
2014-11-26 08:01:13 Jack Anston NS001 Success
2014-11-26 08:03:10 Peter Zack SZP001 Success
2014-11-26 08:04:39 Peter Zack SZP001 Success
2014-11-26 08:05:26 Suri SP001 Success
2014-11-26 08:06:52 James Lolly ED001 Success
2014-11-26 08:22:31 Jack Anston NS001 Success
2014-11-26 08:22:49 Chume TH002 Success
2014-11-26 08:23:40 James Lolly ED001 Success
2014-11-26 08:38:21 Ari Ari TK001 Success
2014-11-26 08:39:25 Ari Ari TK001 Success
Thanks
Kimmy