If I have 2 date columns in a table, startDate and endDate. How do I return rows where a given date fits between those 2 dates? For example:
startDate
endDate
With SQL Server it's actually as simple as:
SELECT startDate, endDate FROM YourTable WHERE '2012-10-25' between startDate and endDate