Description
Returns TRUE if any value in a group is true
Aliases: LOGICAL_OR — equivalent spellings; same function and parameters.
Syntax
BOOLOR_AGG(expression)
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| expression | Column or expression to evaluate | Boolean | Yes |
Notes
- When used as a window aggregate, include an
OVER (...)clause. - Use
QUALIFY(notWHERE) to filter rows based on a window calculation.
Example
SELECT
department, LOGICAL_OR(is_active) OVER (PARTITION BY department ORDER BY start_date) AS any_active
FROM
rippling.employee.Employee;