Title - Average SQL function Tags - sql function aggregate

SQL uses the AVG() function to quickly calculate the average value of a particular column.

Example:

SELECT AVG(downloads) FROM fake_apps;

This calculates the average number of downloads for an app in the fake apps database/table.

The function works by taking a column name as an argument and returns the average value for that column.