top of page
SUM([DISTINCT] expr) [over_clause]
Returns the sum of expr. If the return set has no rows, SUM() returns
NULL. The DISTINCT keyword can be used to sum only the distinct values
If there are no matching rows, SUM() returns NULL.
This function executes as a window function if over_clause is present.
over_clause is as described in
cannot be used with DISTINCT.
bottom of page