ReferenceSQL FunctionsAggregate FunctionssumVersion: Latest-3.3On this pagesum Description Returns the sum of non-null values for expr. You can use the DISTINCT keyword to compute the sum of distinct non-null values. Syntax SUM([DISTINCT] expr) Parameters