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!

Delete all rows except 10 random rows

1001096Apr 5 2013 — edited Apr 5 2013
Hi,

how can I delete all rows from table JOBS except 10 random rows?

Someone asked it before (not here..): http://stackoverflow.com/questions/10820105/t-sql-delete-except-top-1

but I didn't understand the answer, and I don't think it will work in PL/SQL.

If the answer in StackOverflow does works in PL/SQL, I will glad if someone explains me with better example,

If the answer in StackOverflow does'nt work in PL/SQL, I will glad if someone gives me an example.

thanks!
This post has been answered by Nimish Garg on Apr 5 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2013
Added on Apr 5 2013
7 comments
2,577 views