MySQL Function Reference

AVG
Returns the average value for a column
MySQL 8.1
AVG([DISTINCT] expr)
expr
A numeric expression to calculate the average value for
Examples
MySQL 8.1
SELECT AVG(amount)
FROM Payments;
MySQL 8.1
SELECT good,
	AVG(unit_price)
FROM Payments
GROUP BY good;