BETWEEN
Check whether a value falls within an inclusive range.
Try an expression
In Formula, enter the expression and set Output type to BOOLEAN.
Example input
- Row 1
amount = 20 - Row 2
amount = 120 - Row 3
amount = NULL
Expression
amount BETWEEN 10 AND 50Result
Row 1: true
Row 2: false
Row 3: NULLNULL means the value is missing.
This Boolean expression also works in Filter custom mode. The True output receives rows 1; the False output receives rows 2, 3. A missing result goes to False.
Arguments and types
expr BETWEEN low AND highThe result type can depend on the input types. See DuckDB for the full argument rules.
Function metadata from DuckDB, used under the MIT license.