SQL TUTORIALS-
SQL ORDER BY Key-word
Introduction-
ORDER BY keyword in SQL is used to sort the result set of a query by one or more columns. You can sort the data in ascending (ASC) or descending (DESC) order...
✅ 🔹 Syntax:
SELECT column1, column2, ...
FROM table_name
ORDER BY column1 [ASC | DESC], column2 [ASC | DESC], ...;
✅Result Show :-
ID | Name | Salary |
---|---|---|
1 | ANNI | 10000 |
2 | SUJAN | 8000 |
3 | BOULT | 5000 |