I have the following query:
SELECT * FROM LOGS WHERE CHECK_IN BETWEEN CONVERT(datetime,'2013-10-17') AND CONVERT(datetime,'2013-10-18')
this query returns no result, but the next query returns the result,
SELECT * FROM LOGS WHERE CHECK_IN >= CONVERT(datetime,'2013-10-17')
why does the first query return no result? If I was wrong, correct me.
sql-server sql-server-2008 between
Abble alias
source share