Sum

Description

Computes the sum of an aggregation of values.

Syntax

Sum ( n )

Arguments

n is a numeric expression.

Remarks

Sum is an aggregation function which can only be used in an aggregating Select statement. Null values are ignored. If there are only null values supplied in the aggregation, then a null value is returned.