Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GROUP BY on expression
Message
De
10/04/2003 08:58:32
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00775899
Message ID:
00775981
Vues:
13
>Your conclusion is incorrect because SQL Server doesn't work the way you described. The Query Optimizer analyzes whole query and decides how execute it. As I mentioned in the previous message ( I guess you missed it) Recent article in SQL Server magazine showed that this select generates the same execution plan as your query.

Ok, adding the temporary cursor name does it. I also put the entire syntax that I need and that works great:
SQLExec(lnHandle,'SELECT Year,Month FROM (SELECT YEAR(AddDate) AS Year,'+;
 'MONTH(AddDate) AS Month FROM News) Temp GROUP BY Year,Month')
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