MySQL COUNT, AVG, SUMAggregate functions. MySQL COUNT(), AVG() and SUM() Functions The COUNT() function returns the number of rows that matches a specified criterion. The AVG() function returns the average value of a numeric column. The SUM() function returns the total sum of a numeric column. ExampleSELECT COUNT(*) FROM Customers;Try it Yourself PreviousNext