T-SQL Between Dates Confusion
问题 I am working with T-SQL in SQL Server 2000 and I have a table TRANSACTIONS which has a date column TRANDATE defined as DateTime, among many other columns which are irrelevant for this question.. The table is populated with transactions spanning many years. I ran into code, test, that has me confused. There is a simple SELECT , like this: SELECT TRANDATE, RECEIPTNUMBER FROM TRANSACTIONS WHERE TRANDATE BETWEEN '12/01/2010' and '12/31/2010' ORDER BY TRANDATE and its not returning two rows of