Professional Documents
Culture Documents
SQL AVG Function: Syntax
SQL AVG Function: Syntax
SQL AVG() function returns the average value of a numeric column of a table and it ignores
NULL values during calculation.
Syntax
SELECT AVG(columnName) FROM TableName
In this article we will consider Student table to check how AVG() function works. We will
calculate average value of Fees column.
SELECT AVG(Fees) FROM Student