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
2019-11-18 14:05:53 +01:00

5 lines
256 B
SQL

/*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;