SQL ORDER BY

The order by clause is used to sort the data in ascending or descending order

Syntax:

example:

output:

above example Cars table is sorted with model name column in ascending order using Order By clause

Leave a Comment

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

Scroll to Top