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

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -