2. Aggregate function
„ Aggregate functions are typically used in arithmetic expressions
„ The result of an aggregate operation is a single numeric value in the
result table.
„ GROUP BY Clause can be used for getting summarized results
„ It used in Expression list of SELECT statement
4. Aggregate function
„ AVG
„ Returns a column value that is the arithmetic average of a specified column in a
result table.
„ CORR
„ Returns the Pearson product moment correlation coefficient of its arguments
for all non-null data point pairs.
„ COUNT
„ Returns a column value that is the number of qualified rows in a result table.
5. Aggregate function
„ COVAR_POP
„ Returns the population covariance of its arguments for all non-
null data point pairs.
„ COVAR_SAMP
„ Returns the sample covariance of its arguments for all non-null data
point pairs.
„ KURTOSIS
„ Returns the kurtosis of the distribution of value_expression.
Sum((x-AVG(x) –(y – AVG(y))
________________________
COUNT(X) -1
Sum((x-AVG(x) –(y – AVG(y))
________________________
COUNT(X)
6. Aggregate function
„ SUM
„ Returns a column value that is the arithmetic sum of a specified column in
result table.
„ MIN
„ Returns a column value that is the minimum value in column_name in a result
table
„ MAX
„ Returns a column value that is the maximum value in column_name in
a result table.