sql - How to order data in oracle select query without using order by -
this question has answer here:
i pretty new oracle , came across question during interview, cannot answer
display data in order without using order by, both ascending , descending.
is there way in oracle ?
under circumstances don't need order by
clause.
let's have table emp
index on column emp_id
. such query not require order by
clause result ordered automatically emp_id
:
select * emp emp_id > 10;
however, you should not rely on that. in conditions oracle may behave different.
Comments
Post a Comment