Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLExec to handle two SQLs
Message
De
20/03/2003 11:25:01
 
 
À
20/03/2003 06:29:43
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00767949
Message ID:
00768133
Vues:
13
>Other way is:
>
>SELECT News.Numero, News.CustomerName, MIN(News.Numero) AS Numero FROM News ;
> Group By News.Numero, News.CustomerName
>
As per the new standard in VFP, which seems to be compatible with SQL Server, we can't no longer use that approach when having a GROUP BY. So, this is why we collect the keys first and then use a INNER JOIN in another SQL to get the rest of the fields.
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform