thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Data & Analytics · Foundational

BETWEEN Operator

A predicate that tests whether a value lies within an inclusive range: x BETWEEN a AND b means x >= a AND x <= b.

Definition

BETWEEN includes both endpoints. With datetime columns, BETWEEN '2026-01-01' AND '2026-01-31' misses rows after midnight on the 31st, so half-open ranges (>= start AND < next day) are safer.

Example

WHERE OrderDate >= '2026-01-01' AND OrderDate < '2026-02-01'

Exam tip

BETWEEN is inclusive at both ends; watch for timestamp columns that end at 00:00:00.

Related terms