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 data retrieval

RE: Random data retrieval

From: Arvind Aggarwal <oradba9_at_yahoo.com>
Date: Fri, 12 Jan 2001 13:07:39 -0800 (PST)
Message-Id: <10739.126566@fatcity.com>


Hi,

Sachin according to your requirement. I think if you mix sample with rownum clause it works. I tested it on my system .

select trans_map_k from trans_map sample(2) where trans_map_k like '%1%' and rownum<2;

Everytime the result is different. By using SAMPLING+ROWNUM, it will retreive only one row from the random sample.

Thanks,

Arvind Aggarwal

Received on Fri Jan 12 2001 - 15:07:39 CST

Original text of this message

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