Used to arrange the select statement output in ASCENDING or DESCENDING order
- Supports with all types of data
- it is only for display purpose
Syntax:-
Select * from order by If we want to sort in descending order then specify “ desc “Select * from
order by desc By default oracle will use ascending order. Ex:
SQL> select * from EMP order by ename desc;
Here we can see that ‘ENAME’ came in ‘DESCENDING ORDER’.
No comments:
Post a Comment