Given a table with a datetime column, how do I query for rows where the date matches the value I specify but ignores the time portion?
For example, select * from sales where salesDate = '11/11/2010'
For this query we don’t care about the time. Other queries require the time component so we can’t store only the date component.
Thanks!
You can remove the time component when comparing:
Another approach is to change the select to cover all the time between the start and end of the date: