Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting 10 records randomly
Message
From
04/01/1998 12:51:33
 
 
To
04/01/1998 12:48:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00069291
Message ID:
00069357
Views:
51
>IMHO, this is useless. I don't see how you can get twice the same record using a select SQL.

I didn't give a good explanation.

The TOP 10 will return more than 10 records if RAND() has selected the same value more than once.

This is why I always concatenate with my unique ID to make sure I will only have 10 records. I applied the same solution for the TOP 50 posters of a forum where the 50th position may be shared by more than one person.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform