Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Retrieve records randomally

Retrieve records randomally

From: Ulrich Kaemmerer <U.Kaemmerer_at_Creon-IT.com>
Date: Fri, 2 Jul 1999 23:05:06 +0200
Message-ID: <7lj9ho$pqc$1@newsread.do.de.uu.net>


Hi all,

is there a possibillity to retrieve a numer of records randomally from a table ?
I have a table with 300000 records an want to retrieve a user-defined percentage
of random selected records.
I know that i can use a column, update the whole table with distinct random-numbers
and than retrieve all records < x.

But i think there should be another solution without updating a column.

Maybe something with random rowid´s ?

Thanks in advance
U.Kaemmerer

++++++++++++++++++++++++++++++++++

Ulrich Kämmerer
Creon IT Consult GmbH

Tel   : +49 69 609004-11
Fax   : +49 69 609004-20
Mobil : 0171 / 2837367
EMail : U.Kaemmerer_at_Creon-IT.com

++++++++++++++++++++++++++++++++++
Received on Fri Jul 02 1999 - 16:05:06 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US