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?
- New Content published on w3resource:
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework