Hi,
How do I Select records between two dates in two columns?
Select * From MyTable Where 2009-09-25 is between ColumnDateFrom to ColumnDateTo
I have a date (2009-09-25) and I like to select the records that is in the timeframe ColumnDateFrom to ColumnDateTo.
Sample
Record 1 ColumnDateFrom = 2009-08-01 AND ColumnDateTo = 2009-10-01
Record 2 ColumnDateFrom = 2010-08-01 AND ColumnDateTo = 2010-10-01
If my input date is 2009-09-28; then I get record 1