BOOL_OR

Returns TRUE if any value in the group is TRUE.

Analyze Syntax

func.bool_or(get_column(table, 'is_active'))

Analyze Examples

func.bool_or(get_column(table, 'is_active'))

SQL Syntax

BOOL_OR(<is_active>)

SQL Examples

SELECT department, BOOL_OR(is_active) FROM employees GROUP BY department;

┌────────────┬─────────────────────┐
 department  bool_or(is_active)  
├────────────┼─────────────────────┤
 Sales                         1 
 IT                            1 
└────────────┴─────────────────────┘