Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select top N
Message
De
01/04/2005 16:14:11
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01000762
Message ID:
01000850
Vues:
19
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform