Skip to content

Returns the number of rows for which the expression is TRUE.

func.count_if(get_column(table, 'salary') > 80000)
func.count_if(get_column(table, 'salary') > 80000)
┌────┐
42
└────┘
COUNT_IF(<salary> > 80000)
SELECT COUNT_IF(salary > 80000) FROM employees;
┌────┐
42
└────┘