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: fumi <fumi_at_tpts5.seed.net.tw>
Date: 9 Nov 1999 15:27:55 GMT
Message-ID: <809ehr$4js$4@news.seed.net.tw>

<jobrien99_at_my-deja.com> wrote in message news:8054re$ufp$1_at_nnrp1.deja.com... stion.
[snip]
> Overestimate and use a cursor that fetches 10 times and then closes.
> So what if 2% brings back 14 rows, ignore the extra 4.
>
> Regards,
> John

You still didn't get the point.

  1. Though you think 2% will return 14 rows, you can not anticipate how many exactly rows Oracle will return, Oracle may returns only, say, 5 rows, for example.
  2. If you increase the percent, though yon can get more then 10 rows and ignore the extra rows, but, you take sample from the forward rows, not from the WHOLE table. The "last rows" will never be read.
Received on Tue Nov 09 1999 - 09:27:55 CST

Original text of this message

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