AVG


The AVG() Function is used to return the average value of n.

Syntax :-

SELECT  AVG (column_name)

FROM table_name

WHERE conditions;

Example : Let's see how to used AVG function in table.

Query :

SELECT  AVG (Salary)

FROM customers;

Output :

Now, you can see AVG() Function calculated average salary in the salary column .