BETWEEN
Applies to: CELONIS 4.0 CELONIS 4.2 CELONIS 4.3 CELONIS 4.4 CELONIS 4.5 CELONIS 4.6 CELONIS 4.7
Description
BETWEEN ... AND ...
returns true for all cases of a column that are in the closed interval given. Returns false otherwise. The reverse is true for NOT BETWEEN ... AND ...
.
Syntax
table.column BETWEEN inclusive start of interval AND inclusive end of interval
table.column NOT BETWEEN inclusive start of interval AND inclusive end of interval
Supported types
Supported value types for the interval start and end points are STRING, INT, FLOAT and DATE. The interval start and end points must be of the same type.
[NOT] BETWEEN ... AND ...
can be used in the following contexts:
CASE WHEN (in the
WHEN
conditions) (Since: CELONIS 4.6)Pull-Up-Functions (in the filter argument) (Since: CELONIS 4.6)
BIND_FILTERS (in the filter argument)
CALC_REWORK (in the filter argument)
Note that if the left value is larger than the right value, then an empty column will be returned.
NULL handling
NULL values in the input column will evaluate to false in the output. If the interval start and/or end points are NULL, then an empty column will be returned.
Case sensitivity
Comparison of strings is case-sensitive.
Examples
[5]
|
[6] Closed interval on the same DATE argument in a CASE WHEN context.
|