SQL Server Aggregate Functions
SQL Server aggregate functions are mainly used for data statistics, such as counting, summing, averaging, etc. When combined with grouping operations, aggregate functions allow you to analyze data across multiple dimensions.
-
AVG
In SQL Server, theAVG()
function is an aggregate function used to calculate the average value of all values in a specified column. -
COUNT
In SQL Server, theCOUNT()
function is an aggregate function used to count the number of rows in a specified column or expression. -
MAX
In SQL Server, theMAX()
function is an aggregate function used to calculate the maximum value in a specified column or expression. -
MIN
In SQL Server, theMIN()
function is an aggregate function used to calculate the minimum value in a specified column or expression. -
SUM
TheSUM()
function is an aggregate function in SQL that calculates the sum of specified column values.