Mastering SQL Data Retrieval, Constraints, and Relational Joins
Sorting Query Results
The ORDER BY clause controls how rows are returned. It does not alter the stored data, only the presentation.
SELECT column_list FROM table_name
WHERE condition
ORDER BY column1 [ASC|DESC], column2 [ASC|DESC];
Single‑column ordering
Sort employees by age in descending order:
SELECT name, age FROM employees ORDER BY age DE ...
Posted on Sun, 10 May 2026 02:14:43 +0000 by deffe