Average Function in MySQL

How to use AVG function to calculate the average value of an expression?

Explanation

AVG Function:


Mysql AVG() Function is used to get the average value of an expression. The average function returns the average of the parameter passed. Returns NULL if no matching rows are found.

Syntax:

avg()
Consider an example of an employee table

Example:


Average Function in MySQL

Ask Questions

Ask Question