Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select top N
Message
From
01/04/2005 16:14:11
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01000762
Message ID:
01000850
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
>>Never mind. If I remove TOP 180, it still returns just 48 records. Weird.
>
>After I fixed some program, it now returns 220 instead of 180. I forgot what is the condition when SELECT TOP N returns more records when requested.

If the 180..220 have the same ORDER BY values.

>Is it the same behavior in VFP9?

No it return 180, as in MS SQL.
Then the result can to be not fully deterministic.

BUT !!
TOP N PERCENT cannot be optimized unless the whole result set can be read into memory at once.
>
>Thanks in advance.
Previous
Reply
Map
View

Click here to load this message in the networking platform