Description
Returns the average value of a numeric expression
Syntax
AVG(numeric_expression)
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| expression | Column or expression to evaluate | Numeric | Yes |
Notes
- When used as a window aggregate, include an
OVER (...)clause. - Use
QUALIFY(notWHERE) to filter rows based on a window calculation.
Example
SELECT
AVG(salary)
FROM
rippling.employee.Employee
GROUP BY
department;