Aggregate Functions
Perform calculations on multiple rows to return a single value. Includes standard SQL functions like SUM, AVG, COUNT, MIN, and MAX, often used with GROUP BY.
Stored Aggregate Functions allow users to create custom aggregate functions that process a sequence of rows and return a single summary result. This page provides a general overview.
Calculate the average value. This function computes the arithmetic mean of a numeric expression, ignoring NULL values.
Perform a bitwise AND operation. This function returns the result of performing a bitwise AND on all values in a given expression.
Perform a bitwise OR operation. This function returns the result of performing a bitwise OR on all values in a given expression.
Perform a bitwise XOR operation. This function returns the result of performing a bitwise XOR on all values in a given expression.
Count unique values. This function returns the number of distinct, non-NULL values found in the specified column or expression.
Complete COUNT() function reference: COUNT(*) and COUNT(expr) syntax, COUNT(DISTINCT) usage, GROUP BY aggregation, and OVER(PARTITION BY) window syntax.
Complete GROUP_CONCAT reference for MariaDB. Complete function guide with syntax, parameters, return values, and usage examples for production use.
Aggregate values into a JSON array. This function aggregates a result set column into a single JSON array.
Aggregate key-value pairs into a JSON object. This function aggregates two columns or expressions into a single JSON object.
Find the maximum value. This function returns the highest value in a set of values, applicable to numbers, strings, and dates.
Find the minimum value. This function returns the lowest value in a set of values, applicable to numbers, strings, and dates.
Calculate population standard deviation. This function returns the square root of the population variance. It is a synonym for STDDEV_POP().
Calculate population standard deviation. This function is a synonym for STD() and STDDEV_POP(), returning the square root of the population variance.
Calculate population standard deviation. This function computes the standard deviation assuming the set of values represents the entire population.
Calculate sample standard deviation. This function computes the standard deviation assuming the set of values represents a sample of the population.
Calculate the total sum. This function returns the sum of all values in a numeric expression, ignoring NULL values.
Calculate population variance. This function computes the statistical variance for a set of values assumed to be the entire population.
Calculate sample variance. This function computes the statistical variance for a set of values assumed to be a sample of the population.
Calculate population variance. This function is a synonym for VAR_POP() and returns the variance of a set of values.
Last updated
Was this helpful?

