Get Column Stats
Calculates an aggregate value of a table column.
Last updated
Was this helpful?
Calculates an aggregate value of a table column.
This procedure is used to calculate an aggregate value for a table column. It can be used to apply a function to a column and get its sum, mean, average, count, minimum, maximum, standard deviation, or sample variance.
column
table's column
The column to perform the aggregation on.
No default
Yes
aggregate function
string
The function to use for aggregation. Valid options are: sum, mean, average, count, min, max, median, std, var.
No default
Yes
aggregate value
The result of the aggregation.
In the following examples, the column refers to the Amt column in the table below.
100
10
30
200
5
500
Note: This sample table can be generated using the create an integer table procedure.
get the column's count2
150.0
200
Last updated
Was this helpful?
Was this helpful?
get the column's averageget the column's max
