SUM ( [ DISTINCT | ALL ] value_expression )
Syntax Elements
- DISTINCT
- Exclude duplicates of value_expression from the computation.
- ALL
- All values of value_expression that are not null, including duplicates, are included in the computation.
- value_expression
- A literal or column expression whose sum is to be computed.