Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLExec to handle two SQLs
Message
From
20/03/2003 11:25:01
 
 
To
20/03/2003 06:29:43
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00767949
Message ID:
00768133
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform