I have a set of rows, each with a date value, and I need to select rows that fall within a specific date range. How can I do this?
select * from table where convert(int,date_created) between //what should go here?
I want to select between '20-10-2010' and '22-10-2010'.
It keeps complaining about string to date conversion.
date_createdis a DATETIME field, so I was trying to delete the time bit by converting it to int? someone told me that's how its done, sorry I might be confused!