- Overview
- Data types
- Commands
- Functions
- Overview
- Aggregate
- Conditional expression
- Conversion
- Date and time
- Numeric
- String
- Semi-structured data
On this page
sum
Returns the sum of non-NULL records for <expr>
. If all records inside a group are NULL, the function returns NULL.
Syntax
sum( <expr1> )
Arguments
<expr>
This is an expression that evaluates to a numeric data type.