SQL SORTING ON MULTIPLE COLUMNS

Let’s take an example of customer table which has many columns, the following SQL statement selects all customers from the table named “customer”, stored by the “country” and “Customer-Name” columns:

SELECT * FROM customers  

ORDER BY country, Customer-Name;

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *