Sorting Results with ORDER BY in MySQL

Published July 26, 2025 By Sai Sree Ram Gundepudi

Example

SELECT * FROM employees ORDER BY salary DESC;

You can sort by multiple columns using commas.

Was this solution helpful?

Your feedback helps improve our technical knowledge repository.

Share this article