SELECT [NEXT_UPDATE_TIME]
FROM [BGREX_UpdateQueue]
WHERE [NEXT_UPDATE_TIME] < 18/12/2009
I want to select those dates from the records where datetime value in column is less than some datetime, we need to compare. I have several value lass than "18/12/2009", but getting no rows returned.
following syntax does not work either
SELECT 18/12/2009 // returns 0
WHERE [NEXT_UPDATE_TIME] < '18/12/2009'; // The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
What is the right syntax to pass '18/12/2009' or some other date ? thanks