sql - How to order data in oracle select query without using order by -


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

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -