Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A different approach for optimization
Message
From
28/02/2014 15:30:18
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01595558
Message ID:
01595567
Views:
24
>There is no alternative to get results of the GROUP BY by other means. However, if you can find cases where extra JOINs are not needed, it may be better to remove them.

Whereas applicable, they are all needed. Otherwise, I wouldn't have put them in there. The GROUP BY is based on conditions. Some conditions are based on INNER JOIN tables.

>Also, perhaps instead of using @Success as variable you may have better results with direct 1 (if, say, you always interested in Success = 1).

Everything has always been parameterized for SQL Server. Why in this case, a direct assignation would be better?
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