ORDER BY
Published July 26, 2025
By Sai Sree Ram Gundepudi
ORDER BY Clause
Use ORDER BY to sort results based on one or more columns.
SELECT first_name, salary FROM employees ORDER BY salary DESC;By default, sorting is ascending unless DESC is specified.