Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simplifying WHERE clause with CASE WHEN
Message
De
21/04/2015 18:14:59
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01618887
Message ID:
01618923
Vues:
29
>It doesn't mean I recommend to keep your current UPDATE command as is. I'd rather re-format it to MERGE and to simplify its meaning.

Yes, but, the execution plan changed from 96% allocated to those two previous select to 1% after the COALESC syntax.

I am testing now the time it takes for this 30 minutes benchmark as previously taken with the version not included this syntax (the one which simply used NoProvince=84).

The first two runs with the dual selects took longer than an hour so I stopped it.
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