sum(...)Returns the sum of a given set of numbers
Works with the following datatypes:
This function works with 2.1 and 3.0 endpoint(s). What does this mean? »
The sum(...) function is most commonly used in $select aggregations to return the sum of a set of numeric values (Numbers). For example, to fetch the total amount spent on salaries in the City of Chicago:
The TryIt macro has been disabled until future notice while we upgrade this site to SODA3.
It can also be used in $group aggregations, like this one to get the sum of salaries by job type:
The TryIt macro has been disabled until future notice while we upgrade this site to SODA3.