Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: reading random records with JDBC?
MfwEwkCtzVem_at_spammotel.com wrote:
>> Use the SAMPLE clausehttp://www.psoug.org/library.html >> scroll down to "SAMPLE CLAUSE."
Then use DBMS_RANDOM to generate random numbers between 1 and the number of rows in the smallest of the two tables.
http://www.psoug.org/reference/dbms_random.html
alternatively DBMS_CRYPTO.RANDOM_INTEGER http://www.psoug.org/reference/dbms_crypto.html
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Mon Nov 05 2007 - 11:27:21 CST
![]() |
![]() |