chrissanderson
Programmer
This is my first post on here. Bit of a SQL n00b so please bear with me
)
I have an events search that lets users search by month and year (day is too specific). The events have have both a start and end date that can span over several days, or at the most, years.
I'm trying to build a SQL query that only returns results where the partial search date (mm/yyyy) is between EventStartDate and EventEndDate.
So for example, if you search on 11/2005, an event starting 31/10/2005 and ending 01/03/2007 would be returned.
I've tried loads of ideas, wasted countless hours and really need some help. Any thoughts?
I have an events search that lets users search by month and year (day is too specific). The events have have both a start and end date that can span over several days, or at the most, years.
I'm trying to build a SQL query that only returns results where the partial search date (mm/yyyy) is between EventStartDate and EventEndDate.
So for example, if you search on 11/2005, an event starting 31/10/2005 and ending 01/03/2007 would be returned.
I've tried loads of ideas, wasted countless hours and really need some help. Any thoughts?