COUNT_IF (Lakehouse v2)
Returns the number of rows for which the expression is TRUE.
Analyze Syntax
Section titled “Analyze Syntax”func.count_if(get_column(table, 'salary') > 80000)Analyze Examples
Section titled “Analyze Examples”func.count_if(get_column(table, 'salary') > 80000)
┌────┐│ 42 │└────┘SQL Syntax
Section titled “SQL Syntax”COUNT_IF(<salary> > 80000)SQL Examples
Section titled “SQL Examples”SELECT COUNT_IF(salary > 80000) FROM employees;
┌────┐│ 42 │└────┘