Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Random
Miscellaneous
Thread ID:
00095495
Message ID:
00095498
Views:
26
>I have a dbf table of members and related info.
>How can I get a random sampling of 411 out of the existing 6812?
>I been trying to apply rand() but with no success..
>Thank you for your understanding.

Hi Joe,

There was a thread on this topic a while back. I believe you can get what you want by playing with something like:
SELECT  RAND() AS Dummy, MyField1, myField2, ... ;
    FROM MyTable ;
    ORDER BY 1 ;
    INTO CURSOR MyCursor
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform