Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLExec to handle two SQLs
Message
De
20/03/2003 11:26:16
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00767949
Message ID:
00768134
Vues:
22
>You can use first query as a derived table.
>
SELECT News.Numero, News.CustomerName FROM ( ;
>       SELECT MIN(News.Numero) AS Numero FROM News WHERE Priority=1 ) Temp
> INNER JOIN News ON Temp.Numero = News.Numero
Thanks, this is what I was looking for. I'll try that. In my original message, I forgot to include the GROUP BY clause in the first SQL. But, I guess this approach can still work.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform