データベース管理では、集計関数は、複数の行の値が特定の基準で入力としてグループ化され、集合、袋またはリストなどのより重要な意味または測定の単一の値を形成する関数です。
MIN returns the smallest value in a given column
MAX returns the largest value in a given column
SUM returns the sum of the numeric values in a given column
AVG returns the average value of a given column
COUNT returns the total number of values in a given column
COUNT(*) returns the number of rows in a table
GROUPING Is a column or an expression that contains a column in a GROUP BY clause.
STDEV returns the statistical standard deviation of all values in the specified expression.
STDEVP returns the statistical standard deviation for the population for all values in the specified expression.
VAR returns the statistical variance of all values in the specified expression. may be followed by the OVER clause.
VARP returns the statistical variance for the population for all values in the specified expression.
集計関数は、
SELECT
ステートメントの「返された数値データの列」を計算するために使用されます。基本的には、選択したデータの特定の列の結果を要約します。 - SQLCourse2.com
すべての集約関数はNULL値を無視します。