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
Check BETWEEN keyword.
Syntax is simple:
SELECT col1, col2 FROM table1 WHERE date_col BETWEEN '2012-10-25' and 2012-10-28