Lecture - 15 - ORDER SQL
Lecture - 15 - ORDER SQL
The ORDER BY clause is used to sort the records in result set. It can only be used in SELECT statements.
SELECT "column_name"
FROM "table_name"
[WHERE "condition"]
ORDER BY "column_name" [ASC, DESC];
Syntax It is possible to order by more than one column.
Start-Tech Academy
ORDER BY
The ORDER BY clause is used to sort the records in result set. It can only be used in SELECT statements.
Same as
SELECT * FROM customer
WHERE state = 'California’ ORDER BY Customer_name ASC;
Start-Tech Academy