Selecting a random sample of data using PL/SQL

From: John L Dunn <misioror_at_gas.uug.arizona.edu>
Date: 1996/05/24
Message-ID: <Pine.SOL.3.91.960524155157.10309A-100000_at_helium.gas.uug.arizona.edu>#1/1


Anybody written PL/SQL code to select records from a table randomly? For instance, I've got a 2,000,000 row table and I want a random sample of 10,000; how do I do it using PL/SQL? Or is it better to punt and use a 3GL/4GL for this purpose?

Any help appreciated! TIA,

John Dunn
The University Physicians Received on Fri May 24 1996 - 00:00:00 CEST

Original text of this message