Skip to content

Returns TRUE if any value in the group is TRUE.

func.bool_or(get_column(table, 'is_active'))
func.bool_or(get_column(table, 'is_active'))
BOOL_OR(<is_active>)
SELECT department, BOOL_OR(is_active) FROM employees GROUP BY department;
┌────────────┬─────────────────────┐
│ department │ bool_or(is_active) │
├────────────┼─────────────────────┤
│ Sales │ 1
│ IT │ 1
└────────────┴─────────────────────┘