I databashantering är en sammanlagd funktion en funktion där värdena för flera rader grupperas tillsammans som inmatning på vissa kriterier för att bilda ett enda värde av mer betydande betydelse eller mätning som en uppsättning, en påse eller en lista.
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.
Samlade funktioner används för att beräkna mot en "returnerad kolumn med numerisk data" från ditt
SELECT
uttalande. De sammanfattar i princip resultaten från en viss kolumn med utvalda data. - SQLCourse2.com
Alla aggregerade funktioner ignorerar NULL-värden.