I am trying to develop a query that will display the start and end dates of a series of dates. My data includes a field with employee number and a field with dates that these employees are absent. I want to display the employee number, the first date that they are absent and the last date they are absent (which may be the same date if they are only away one day). My data looks like this:
EmpID Date
4772 01/01/09
4772 14/04/09
4772 15/04/09
4772 16/04/09
4772 17/04/09
5382 23/03/09
5382 24/03/09
5382 25/03/09
5382 26/03/09
5382 27/03/09
5395 15/06/09
I want the output of my query to look like this:
EmpID StDate EndDate
4772 01/01/09 01/01/09
4772 14/04/09 17/04/09
5382 23/03/09 27/03/09
5395 15/06/09 15/06/09
Any suggestions about how to do this with an Access Query?
Thanks,
Brad
EmpID Date
4772 01/01/09
4772 14/04/09
4772 15/04/09
4772 16/04/09
4772 17/04/09
5382 23/03/09
5382 24/03/09
5382 25/03/09
5382 26/03/09
5382 27/03/09
5395 15/06/09
I want the output of my query to look like this:
EmpID StDate EndDate
4772 01/01/09 01/01/09
4772 14/04/09 17/04/09
5382 23/03/09 27/03/09
5395 15/06/09 15/06/09
Any suggestions about how to do this with an Access Query?
Thanks,
Brad
Comment