Database - ORDER BY

The ORDER BY keyword is used to sort the result-set by a
specified column.
The ORDER BY keyword sort the records in
 ascending order by default.
If you want to sort the records in a descending order,
 you can use the DESC keyword.


SELECT * FROM employee
ORDER BY deptno
SELECT * FROM employee
ORDER BY deptno desc

Comments

Popular posts from this blog

How to set Java Object into JaxBElement ?

GitLab