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

MS SQL get all dates prior to given date

$
0
0

How do I find all dates prior to a given date? I have the following partial script:

select trandefid from NodeSynchronizationHearingState where CaptureCompleteDate < GETDATE()

That will select all records where CaptureCompleteDate is prior to today's date. How do I return records prior, say, 12/15/2018? This seems like a simple question but I'm not finding what I'm looking for on Google.


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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