Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A different approach for optimization
Message
From
28/02/2014 18:14:26
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01595558
Message ID:
01595584
Views:
31
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform