avg(expression)
| smallint, int,
bigint, real, double
precision, numeric, or interval
| 整数类型参数为numeric,浮点参数为double precision,否则与参数数据类型相同
| 所有输入值的平均值(算术平均) |
bit_and(expression)
| smallint、int、bigint 或 bit | 与参数数据类型相同 | 所有非空输入值的按位与;没有非空输入时为 null |
bit_or(expression)
| smallint、int、bigint 或 bit | 与参数数据类型相同 | 所有非空输入值的按位或;没有非空输入时为 null |
bool_and(expression)
| bool
| bool
| 所有输入值都为真时返回真,否则返回假 |
bool_or(expression)
| bool
| bool
| 至少一个输入值为真时返回真,否则返回假 |
count(*) | 任意 | bigint | number of input rows |
count(expression) | 任意 | bigint | expression 的值不为 null 的输入行数 |
every(expression)
| bool
| bool
| 等价于 bool_and |
max(expression) | any array, numeric, string, or date/time type | same as argument type | 所有输入值中expression的最大值
|
min(expression) | any array, numeric, string, or date/time type | same as argument type | 所有输入值中expression的最小值
|
stddev(expression)
| smallint, int,
bigint, real, double
precision, or numeric
| double precision(浮点参数),否则numeric
| 输入值的样本标准差 |
sum(expression) | smallint, int,
bigint, real, double
precision, numeric,
interval, or money
| smallint或int参数为bigint,bigint参数为numeric,否则与参数数据类型相同
| 所有输入值中expression的总和 |
variance(expression)
| smallint, int,
bigint, real, double
precision, or numeric
| double precision(浮点参数),否则numeric
| 输入值的样本方差(样本标准差的平方) |