sum_distinct

Function sum_distinct 

Source
pub fn sum_distinct<'a, V, E>(expr: E) -> SQLExpr<'a, V, E::SQLType, Null, Agg>
where V: SQLParam + 'a, E: Expr<'a, V>, E::SQLType: Numeric,
Expand description

SUM(DISTINCT expr) - sums distinct numeric values.

Requires the expression to be Numeric. Preserves the input expression’s SQL type.