Function avg
Source pub fn avg<'a, V, E>(expr: E) -> SQLExpr<'a, V, Double, Null, Agg>
Expand description
AVG(expr) - calculates average of numeric values.
Requires the expression to be Numeric.
Always returns Double (SQL standard behavior), nullable.
ยงType Safety
โavg(products.price);
avg(users.name);