what is the best way to compare a constant such as '07-21-2004' to a datetime column
I want something like the following
select * from tableA where myDateCol = '07-21-2004'
if myDateCol has a value of '07-21-2004 10:15:00' the row should be selected. I want the query to ignore the time portion.
I want something like the following
select * from tableA where myDateCol = '07-21-2004'
if myDateCol has a value of '07-21-2004 10:15:00' the row should be selected. I want the query to ignore the time portion.