Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting 10 records randomly
Message
From
04/01/1998 00:18:00
 
 
To
03/01/1998 23:38:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00069291
Message ID:
00069301
Views:
38
select * from your table into cursor tmp
for i=1 to 10
  lnRecno = int(rand()*_tally)
  go lnRecno
  save the record somewhere
endfor
It's not the best technique, it's my way ;) >What would be the best technique to select 10 records randomly from a table?
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform