Description
Selects values within a given range
Syntax
expression BETWEEN low_value AND high_value
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| value | Input value | Any | Yes |
| low | Lower bound of the range (inclusive) | Any | Yes |
| high | Upper bound of the range (inclusive) | Any | Yes |
Notes
- Returns TRUE if
expression >= low_value AND expression <= high_value - Returns NULL if any operand is NULL
Example
SELECT
id
FROM
rippling.employee.Employee
WHERE
salary BETWEEN 50000 AND 100000;