Name
sum() — Return the numerical summation
Common Usage
sum( number )Description
The sum() aggregate computes the sum or total of
all the non-NULL
values. Any non-NULL number
that is not an integer will be interpreted as a
floating-point value.number
If all non-NULL
values are integers, number
sum() will return an integer. Otherwise,
sum() will return a
floating-point value. If no non-NULL
is found, number
sum()
will return NULL.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access