BOOL_OR

All functions > AGGREGATE > BOOL_OR

Returns true if any value in the group is true.

Syntax

BOOL_OR(expr, group_by, where)
sql

Arguments

ParameterTypeRequiredDescription
exprBOOLEANYesThe boolean expression to evaluate

Returns

TRUE if any value is TRUE, FALSE otherwise

Notes

  • Logical OR aggregation across all values in the group
  • Returns TRUE if any value is TRUE
  • Returns FALSE if all values are FALSE
  • NULL values are ignored in the calculation
  • Returns FALSE for empty groups
  • Can be used with WHERE clause to filter before aggregation
  • Can be used with GROUP BY clause for grouped aggregation

Examples

Last update at: 2025/10/13 10:23:46