ORDER BY keyword is used to sort the result-set in ascending or descending order.
ORDER BY Example
SELECT * FROM Customers ORDER BY Department;
ORDER BY DESC Example
SELECT * FROM Customers ORDER BY Department DESC;
ORDER BY keyword is used to sort the result-set in ascending or descending order.
ORDER BY Example
SELECT * FROM Customers ORDER BY Department;
ORDER BY DESC Example
SELECT * FROM Customers ORDER BY Department DESC;