Class Average
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the AVG aggregate function that calculates the arithmetic mean of numeric values.
public class Average : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
Average
- Implements
Remarks
The AVG function computes the average by summing all non-null values and dividing by the count of non-null values. Null values are excluded from both the sum and count. The result is typically a decimal or floating-point value even when averaging integers. Commonly used with GROUP BY to calculate averages per group.
Constructors
- Average(Column)
Initializes a new instance of AVG for a specific column.