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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Randomly pick

Re: Randomly pick

From: Stephan Born <stephan.born_at_beusen.de>
Date: Thu, 11 Jan 2001 17:34:03 +0100
Message-ID: <3A5DE07B.47438315@beusen.de>

Niall Litchfield wrote:
>
> would this not give the same results each time? I can't see this doing
> anything other than a full table scan and then filtering. i.e. Oracle would
> use the same access path each time?
> curious
>
> >
> > A simple, altho' not scientifically random in the true sense, is to do a
> > non-ordered no index select like:
> >
> > Select * from big_table where rownum < 100001;

Yes, it will bring the result-set in the same order each time. The order is given by the physical appearance in the tablespace... which will not change very often...

Regards, Stephan Received on Thu Jan 11 2001 - 10:34:03 CST

Original text of this message

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