Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eliminating WHERE clauses with NOT
Message
De
04/11/2014 10:44:26
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Eliminating WHERE clauses with NOT
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01610458
Message ID:
01610458
Vues:
71
Would there be a way to workaround the usage of NOT in such SQL:
SELECT Client.Name
 FROM Client
 WHERE Client.NoProvince=@NoProvince AND NOT (Client.NoStatus=@NoStatus AND Client.ModDate<@ModDate)
The execution is getting more complex because the usage of NOT. If I remove the NOT, the execution is straight forward. However, this is only for testing purposes as it wouldn't give the same result.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform