SQL Exercises: Find the average purchase amount of all orders
SQL Aggregate Functions: Exercise-2 with Solution
Write a SQL statement to find the average purchase amount of all orders.
Sample table: orders
SELECT AVG (purch_amt) FROM orders;
Output of the Query:
Pictorial presentation :
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?