Databases · Junior · Question 30 of 75
Which aggregate functions are standard in SQL?
- 1
TOTAL,MEAN,SMALLEST - 2
LENGTH,UPPER,TRIM - ✓Correct answer:
COUNT,SUM,AVG,MIN,MAX
Explanation
LENGTH, UPPER and TRIM are scalar functions: they work on each value, not on a group. PostgreSQL adds many more aggregates like string_agg and array_agg.