Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a CASE WHEN in a WHERE clause
Message
De
30/07/2015 08:58:25
 
 
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:
01622652
Message ID:
01622684
Vues:
34
>So, how long does the select with the changed condition executes?

The original command, only considering the company approach, takes 8 minutes and 34 seconds. This covers pretty much all the records as I have a company in most of them.

If I execute another command just for the research approach, it takes 1 minutes and 17 seconds. This is faster as the research mode is only used in a few records.

Being executed separately is executing the update of the data in a norma timeframe. When being put in one command, the command never finishes.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform