Aspects

Aggregate-functions

Aggregate functions are a subset of SQL functions that compute a single value from multiple input rows, mostly used in `SELECT` queries with a `GROUP BY` clause

Sum

The 'sum' function which returns the sum of the items in an array.

Version answer general

Quality | Example |
---|---|

More general |
"As an added answer there is also the aggregate-functions which is more general than sum" from question "Accumulating sum in one line in C#" |

More |
"Aggregate-functions is more general version of sum" from question "Sum a list of BigIntegers" |

Others

Quality | Example |
---|---|

More consistent |
"I changed out total for sum which is more consistent with other databases sqlite aggregate-functions" from question "Use cid in sqlite instead of column name?" |