Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting 10 records randomly
Message
From
04/01/1998 13:22:28
 
 
To
04/01/1998 12:55:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00069291
Message ID:
00069360
Views:
35
>>>The "TOP x" clause in a SELECT SQL has a bug in VFP and it may return more than x records.
>>
>>I never had problem with it so far.
>
>Yes, you did. See the thread #21472.

This is not a bug. This is the correct behavior of the TOP clause to return more than what we have defined. For example, if you look in the newspaper for the NHL teams that will make the playoff. If on the 8th spot you have 2 teams, you want those 2 teams to be shown which will make it 9 in the list. As for me, in the TOP 50 posters of a forum and in this list of 10 random records, I only want ten. So, I had to had something in the SQL to make sure I will only get 50 or 10.
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