The SQL Server BETWEEN
operator allows you to test between a range of values in your queries. For example, you could test that a value is between two numbers.
The BETWEEN
operator is inclusive, meaning that it includes the values that you specify within the range. That is, it includes values that are greater than or equal to the lower value, and values that are less than or equal to the higher value. Therefore it’s like using >=
and <=
.