programming-examples/sql/FormattingOutput/Write a SQL statement to display the orders with all information in such a manner that, the older order date will come first and the highest purchase amount of same day will come first.sql

5 lines
256 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*Write a SQL statement to display the orders with all information in such a manner that, the older order
date will come first and the highest purchase amount of same day will come first.*/
SELECT *
FROM orders
ORDER BY ord_date,purch_amt DESC;