COUNT_IF (Lakehouse v2)
Retorna o número de linhas para as quais a expressão é TRUE.
Sintaxe no Analyze
Seção intitulada “Sintaxe no Analyze”func.count_if(get_column(table, 'salary') > 80000)Exemplos no Analyze
Seção intitulada “Exemplos no Analyze”func.count_if(get_column(table, 'salary') > 80000)
┌────┐│ 42 │└────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”COUNT_IF(<salary> > 80000)Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT COUNT_IF(salary > 80000) FROM employees;
┌────┐│ 42 │└────┘