programming-examples/sql/AggregateFunctions/Write a SQL statement to find the total purchase amount for all orders.sql

3 lines
126 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*Write a SQL statement to find the total purchase amount for all orders.*/
SELECT SUM (purch_amt)
FROM orders;