Aggregate Operators SQL
Supports all of the aggregate operators mentioned in the theory book and many more besides. The syntax, however, involves an unusual trick that SQL calls a scalar subquery. A scalar subquery is a table expression that satisfies all of the following conditions:
- It is enclosed in parentheses.
- It appears where a scalar expression is expected.
- The result of the enclosed table expression has exactly one column and at most one row.