I have a column of type smalldatetime, date
I would like to run a query that only retrieves rows:
where date = convert (smalldatetime, GetDate ())
However, this never finds a match, as it is also a comparison of time.
That is: 01-01-2010 12: 23: 00! = 01-01-2010 12:25:00
How to find matches only for a part of a date?
source
share