Hi,
Im trying to compare records from one table with others from the same table. My table (tblHoliday) has the EmployeeID, StartDate and EndDate. Im trying to find any records where the "holiday" overlaps (where one record is entirely or partly within the range of dates of another record). I've figured that i might need to use 2 tables so ive created tblTempHoliday and created some code to copy all of tblHoliday into tblTempHoliday.
How would you do the comparison, im pretty stuck?
Thanks,
Chris
Im trying to compare records from one table with others from the same table. My table (tblHoliday) has the EmployeeID, StartDate and EndDate. Im trying to find any records where the "holiday" overlaps (where one record is entirely or partly within the range of dates of another record). I've figured that i might need to use 2 tables so ive created tblTempHoliday and created some code to copy all of tblHoliday into tblTempHoliday.
How would you do the comparison, im pretty stuck?
Thanks,
Chris