The AVG() function returns the average value of a numeric column.
We have the following "Purchases" table:
Now we want to find the average value of the "OrderPrice" fields.
We use the following SQL statement:
The result-set will look like this:
Now we want to find the customers that have an OrderPrice value higher than the average
Your Query was successfully sent!