Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A different approach for optimization
Message
De
28/02/2014 15:30:18
 
 
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:
01595567
Vues:
25
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform