programming-examples/sql/FormattingOutput/Write a SQL statement to display customer name, city and grade in such a manner that, the customer holding highest grade will come first.sql

5 lines
212 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*Write a SQL statement to display customer name, city and grade in such a manner that,
the customer holding highest grade will come first.*/
SELECT cust_name,city,grade
FROM customer
ORDER BY 3 DESC;