Random Select of X % of total records

  • From: Kevin Lange <klange@xxxxxxxxxx>
  • To: oracle-l <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 7 Oct 2005 15:07:25 -0500

Evening all;
  One of our developers is asking if there is a simple SQL way to generate a
random select of the total records in a table.   i.e. They want to see 10%
of the records in the CLAIMS table.
 
Database in question is 9i (9.2.0.6)
 
SQL has to be simple because its going to be used by Cognos which does not
allow anonymous sql blocks.
 
I was hoping that some of the new analytical functions would work for this
but I have not used them yet.
 
Any help out there ??

Other related posts: