AVG() function
The AVG() function calculates the average value of a column in a table or in a set of rows, depending on how to used. One important thing on here that only numeric values can be passed to the AVG() function. We can use CONVERT() to return the numeric value of a number stored as text.