BOOLAND_AGG
functionsupportedCore SQL functionsReturns TRUE if all non-NULL Boolean records in a group evaluate to TRUE. If all records in the group are NULL, or if the group is empty, the function returns NULL.
Syntax
supportedpartialnot supportednot scored
Aggregate function
BOOLAND_AGG( <expr> )
Window function
BOOLAND_AGG( <expr> ) OVER ( [ PARTITION BY <partition_expr> ] )
Parameters
| Name | Required | Description |
|---|---|---|
expr | required | The input expression must be an expression that can be evaluated to a boolean or converted to a boolean. |
partition_expr | required | This column or expression specifies how to separate the input into partitions (sub-windows). |
Returns
This function returns a value of type BOOLEAN.
Usage notes
- Numeric values are converted to TRUE if they are non-zero.
- String and binary values aren’t supported because they can’t be converted to Boolean values.
- When this function is called as a window function, it does not support: An ORDER BY clause within the OVER clause.
- Explicit window frames.