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