SQL WHERE Clause: BETWEEN Operator
Quick Answer
The SQL BETWEEN operator is used within the WHERE clause to filter records that fall within a specified range, inclusive of the boundary values. It simplifies range queries for numbers, dates, and text.
Learning Objectives
- Understand the purpose and syntax of the SQL BETWEEN operator.
- Learn how to use BETWEEN to filter numeric, date, and text ranges.
- Identify scenarios where BETWEEN is the most efficient choice for filtering.
Introduction
The SQL WHERE clause is essential for filtering data in queries.
The BETWEEN operator is a convenient way to specify a range condition within the WHERE clause.
It helps you select rows where a column's value falls between two specified values, including those values.
BETWEEN is inclusive: it includes the boundary values.





