The SQL AVG() function is used to return an average number value from a selected column.
The following data table is for example only. Let's use AVG() function to get the average age from a customer table. The column we going to use are the Age columns.
SELECT AVG(Age) AS Average_Age FROM Customers
After running the above query, it will return the following result.
There are no comments available.