Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL Server Date Time Query

$
0
0

Hi

I have a Table which contains a date time column and has 1 row 1 column

value is 2009-11-13 16:27:54.000

SELECT

*  FROM [dbo].[Audit]WITH(NOLOCK)WHERE Occurred>'2009-11-13 16:27:53.001'ANDOccurred<'2009-11-13 16:27:54.001'

The above query does not return any rows but below does(.002) can some one explain the difference/ why this behaviour

SELECT

*  FROM [dbo].[Audit]WITH(NOLOCK)WHEREOccurred >'2009-11-13 16:27:53.001'ANDOccurred<'2009-11-13 16:27:54.002'


Regards VP



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>