In the interest of preserving performance try this:
select * from emp
where rownum<11
order by dbms_random.random;
This is using Shahzad excellent suggestion but his query subqueries to the same table; which is scary if the table is large. I tested this on a table with an ID column and the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.