I just run this query
Select *
from ProjectData
where logtime between '2012-09-25 12:00:00.000' and '2012-09-25 12:59:59.999'
order by LogTime
in an attempt to find the all record for 12 hour, We have record every second, so I was expecting 3600 record but to my surprise I got 3601 record and the last record time was
2012-09-25 13:00:00.000
Any idea why this record is picked? Even if Between
includes the given values this value is above the condition. I am using SQL Server 2012 Express edition.