Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Randomly Select Records

Status
Not open for further replies.

nickjar2

Programmer
Jun 20, 2001
778
US
Is there an easy way to randomly select, say 100 records.
Eg. If I had a table of 1000 recs and every week week I wanted to pull off a sample 100 recs, could this be done? I know i could request the top n values but I need the query to be totally random.

Thanks

Nick
 
Sorry,

I think my question may have been answered previously.
 
Ihave a sample db that does it if you'd like it.. Joe Miller
joe.miller@flotech.net
 
click on thread701-33057 I just posted this soloution this week.

MichaelRed
mred@att.net

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top