AVG (Lakehouse v2)
Retorna o valor médio de uma coluna numérica.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.avg(get_column(table, 'salary'))Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.avg(get_column(table, 'salary'))Sintaxe SQL
Seção intitulada “Sintaxe SQL”AVG(<salary>)Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT department, AVG(salary) FROM employees GROUP BY department;
┌────────────┬──────────────┐│ department │ avg(salary) │├────────────┼──────────────┤│ Sales │ 65000.00 ││ IT │ 82000.00 │└────────────┴──────────────┘