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 -> Re: Select random rows

Re: Select random rows

From: Mark Townsend <mtownsen_at_us.oracle.com>
Date: Wed, 23 Jun 1999 13:37:24 -0700
Message-ID: <37714584.426F39D7@us.oracle.com>


Oracle8i also has sample capability, i.e

SELECT SUM(sales_dollar_amount)*10 FROM sales SAMPLE BLOCK(10);

will sample 10% of the blocks in the sales table. You can also sample a percentage of rows.

Steven R Fuller wrote:
>
> use the mod function
>
> earthlink wrote:
>
> > Is there a way to select a set number of rows randomly from a table?
> > Hope someone could help

--
Regards,

Mark Townsend                         

Senior Product Manager				Ph: 	(650) 633 5764
Server Division					Fx: 	(650) 506 7222
Oracle Corporation				Email:	mtownsen_at_us.oracle.com

Received on Wed Jun 23 1999 - 15:37:24 CDT

Original text of this message

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