XelaIrodavlas
Registered User.
- Local time
- Today, 03:08
- Joined
- Oct 26, 2012
- Messages
- 175
Hi all,
Looking for some tips on a tricky query:
We have a "Clock" table, which shows the Time & Date Employees started and stopped working. Using this, I need to determine what was the most recent 'day off' that Employee had, i.e. if you worked a regular 9-5 your last day off would have been Sunday 20th October.*
I figure I need to:
TIA,
*This is in order to comply with Working Time Regulations (UK) which state an Employee must take at least 24Hours off within a 7 day period (or 48 hours off within 14 days).
Looking for some tips on a tricky query:
We have a "Clock" table, which shows the Time & Date Employees started and stopped working. Using this, I need to determine what was the most recent 'day off' that Employee had, i.e. if you worked a regular 9-5 your last day off would have been Sunday 20th October.*
I figure I need to:
- Group By Employee Name, then come up with an Expression (or perhaps a custom function?) to look back through the records. But first,
- I'll need to calculate the time difference in Clock Out/In's, to determine when they weren't working, and the length of those periods.
TIA,
*This is in order to comply with Working Time Regulations (UK) which state an Employee must take at least 24Hours off within a 7 day period (or 48 hours off within 14 days).