Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

select random rows from table

1001096Apr 4 2013 — edited Apr 4 2013
Hi,
I want to delete 100 random rows from a table.

I saw this solution: http://stackoverflow.com/questions/848872/select-n-random-rows-from-sql-server-table

but it gives an error:

SQL> select top 10 percent * from employees;

ORA-00923: FROM keyword not found where expected

Does anybody know how to select random rows in pl sql?

thanks

Edited by: 998093 on 12:11 04/04/2013
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 2 2013
Added on Apr 4 2013
5 comments
3,315 views