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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Random selection of data throug SQL querry

Re: Random selection of data throug SQL querry

From: Praful Thakkar <thakkar_praful_at_yahoo.com>
Date: Mon, 18 Dec 2000 06:15:01 -0800 (PST)
Message-Id: <10714.124833@fatcity.com>


Try this ...

select field_list from tablename sample(1);

This will give you a random sample of about 1% of total recs in your table.
(It's Oracle 8.1.6 - I'm not sure if it would work for earlier versions.)

HTH.


Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products. Received on Mon Dec 18 2000 - 08:15:01 CST

Original text of this message

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