Tag: MS-SSMS

Find Rows Beween 2 Dates In TSQL

The following code will select rows between 2 dates in TSQL: If just dates are specified, the time starts at 12:00AM. This means rows 12:01 AM or after on 01/05/2018 would not be included. Helpful related links: Using BETWEEN Using > and < instead of BETWEEN Using NOT BETWEEN Using BETWEEN with datetime values