rojariggs
IS-IT--Management
- Feb 24, 2002
- 27
Hi
I have been going round in circles a bit on this one so hopefully someone can help!
I have a table which contains records that have fields for start and finish dates. For most records, the start and finish dates are the same but there are some where the start and finish date may be a day or several days apart.
I am trying to write a SELECT statement that will find records for a given date. Obviously, the records that have start or finish dates on that given date are easy to find but I am struggling with finding those records that start and finish either side of the date.
For example:
- The user searches for {11/05/2010}.
- I want to find all records that start or finish on the {11/05/2010}
- A record has a StartDate of {03/10/2010} and a FinishDate of {15/10/2010}. I want this record to be found too and any others that start and finish either side of the desired date.
Does this make sense? Any thoughts?
Cheers
Rog
I have been going round in circles a bit on this one so hopefully someone can help!
I have a table which contains records that have fields for start and finish dates. For most records, the start and finish dates are the same but there are some where the start and finish date may be a day or several days apart.
I am trying to write a SELECT statement that will find records for a given date. Obviously, the records that have start or finish dates on that given date are easy to find but I am struggling with finding those records that start and finish either side of the date.
For example:
- The user searches for {11/05/2010}.
- I want to find all records that start or finish on the {11/05/2010}
- A record has a StartDate of {03/10/2010} and a FinishDate of {15/10/2010}. I want this record to be found too and any others that start and finish either side of the desired date.
Does this make sense? Any thoughts?
Cheers
Rog