T-SQL 101: #24 Selecting ranges of values with the T-SQL BETWEEN operator in SQL Server

added by DotNetKicks
8/16/2019 8:56:32 PM

1 Kicks, 137 Views

The T-SQL BETWEEN operator let's you specify a range of values. So in this case shown here: I'm asking for rows where the DateCreated is between the first date and the second date. Notice how I've written the date here. We'll talk about that a bit more in a later post.