I cant seem to get the right combination to generate the proper results. I need to compare the start date and end date to determine if rows are overlaping. Example
RowID StartTime EndTime
1 9/11/2010 08:00:00 9/11/2010 09:00:00
2 9/11/2010 07:30:00 9/11/2010 08:30:00
3 9/11/2010 08:30:00 9/11/2010 09:30:00
4 9/11/2010 09:30:00 9/11/2010 10:30:00
I need to return row 1,2 and 3 but not row 4 since the start time is the same as the end time of the previous appointment. Any help is greatly appreciated.
Open in new window