Aggregate functions perform a calculation on a set of values and return a single value.
COUNT(col)
COUNT(*)
Return the number of rows. When col
is specified, the count returned will be the number of rows. When *
is specified, the count returned will be the total number of rows.
AVG(col)
Return the average value of a given column.
SUM(col)
Return the sum value of a given column.
MAX(col)
Return the max value of a given column.
MIN(col)
Return the min value of a given column.