Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL TOP in Query
Message
De
17/02/2009 02:37:17
Walter Meester
HoogkarspelPays-Bas
 
 
À
16/02/2009 15:40:34
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01382151
Message ID:
01382283
Vues:
45
>Frank, unless there can be multiple cInvoiceNo for the same iSaleId, how about
>
SELECT TOP 2 c_Test.*,val(cInvoiceNo) as iord;
>	FROM c_Test ;
>	ORDER BY iord desc
Yeah, I was wondering as well why a subquery was used. I wonder why this was not noticed by anyone else in this thread. Then I even saw subqueries within subqueries for such a simple problem. Err.... ???
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform