BETWEEN Predicate (between_predicate)
The BETWEEN
predicate (between_predicate
)
is a predicate that
checks whether a value lies in a predefined interval.
Syntax
<between_predicate> ::=
<expression> [NOT] BETWEEN <expression> AND <expression>SQL Tutorial, Conditions: Comparison, AND, OR, BETWEEN, IN, Negative Conditions: NOT
Let x, y, and z be the results of the first, second, and third
expression (expression
). The values x, y and
z must be comparable with each other.
x, y, z |
Result of the Specified Predicate |
|---|---|
|
|
|
|
|
|