Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A different approach for optimization
Message
De
28/02/2014 18:14:26
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01595558
Message ID:
01595584
Vues:
32
>Did you try having an index on the group by expression?

Could you give me an example of what you mean by that?

>Also, do you really need to convert to char? why not grouping by YEAR(Invoice.ModDate) directly? (and having an index on it too might help)

Yes, I might skip the CHAR here and parse it after for the display purpose.
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