Monday, 24 September 2018

AVG() function in sql server


It will return the average value of a numeric column .

Syntax:
SELECT AVG(column_name)
FROM table_name

Example:
SELECT AVG(totalMarks)
FROM Students

No comments:

Post a Comment