wrightyrx7
Registered User.
- Local time
- Today, 11:09
- Joined
- Sep 4, 2014
- Messages
- 104
Hi all,
I have a table with dates of sickness for employees.
However 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 records from '01/01/2016 to 31/03/2016' and '01/05/2016 to 31/05/2016' it would have 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 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 records from '01/01/2016 to 31/03/2016' and '01/05/2016 to 31/05/2016' it would have 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