Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Why won't SQL give me ALL the records here...?

$
0
0

Have a complex query.. which works except for it's not giving me ALL the records..

Here's the part that isn't doing it's job...:

WHERE table.ENTRYDATE >= '5/9/2017' AND table.ENTRYDATE <= '5/23/2017'

The dates/records being returned are from 5/9 to 5/22, but not the 23rd.

I've verified that there are records on the 23rd.. everything else works as expected...

Never seen this happen before, ideas?

Oh, and table.ENTRYDATE is a datetime Datatype..

EDIT:  fixed the typo


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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