wrightyrx7
Well-known Member
- Joined
- Sep 15, 2011
- Messages
- 994
Hi all,
I have a table with dates of sickness for employees.
However due to the system we use no 'one' record can cross over into the following month like 25/01/2016 - 05/02/2016. So they are recorded to the end of the month then a new record starts from 1st of the following month.
Example:
If an employee had sick records from '01/01/2016 to 31/03/2016' and '01/05/2016 to 31/05/2016' it would have show records as follows:-
EmployeeID | StartDate | EndDate
11111 | 01/01/2016 | 31/01/2016
11111 | 01/02/2016 | 29/02/2016
11111 | 01/03/2016 | 31/03/2016
11111 | 01/05/2016 | 31/05/2016
I need it to show in a query as:-
EmployeeID | StartDate | EndDate
11111 | 01/01/2016 | 31/03/2016
11111 | 01/05/2016 | 31/05/2016
then move onto the next EmployeeID.
Can anyone please help..please please please.
Thanks in advance
Chris
I have a table with dates of sickness for employees.
However due to the system we use no 'one' record can cross over into the following month like 25/01/2016 - 05/02/2016. So they are recorded to the end of the month then a new record starts from 1st of the following month.
Example:
If an employee had sick records from '01/01/2016 to 31/03/2016' and '01/05/2016 to 31/05/2016' it would have show records as follows:-
EmployeeID | StartDate | EndDate
11111 | 01/01/2016 | 31/01/2016
11111 | 01/02/2016 | 29/02/2016
11111 | 01/03/2016 | 31/03/2016
11111 | 01/05/2016 | 31/05/2016
I need it to show in a query as:-
EmployeeID | StartDate | EndDate
11111 | 01/01/2016 | 31/03/2016
11111 | 01/05/2016 | 31/05/2016
then move onto the next EmployeeID.
Can anyone please help..please please please.
Thanks in advance
Chris