Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding parentheses
Message
De
01/10/2015 10:54:06
 
 
À
29/09/2015 17:10:57
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:
01624934
Message ID:
01625320
Vues:
52
>if "NOT" it is the culprit
>
> WHERE Client.NoProvince=@NoProvince AND
>  (Client.Status>=@Status   OR Client.NoStatus<>@NoStatus)  AND
>  (Client.Status>=@Status2  OR Client.NoStatus<>@NoStatus2) AND
>  (Client.Status>=@Status3  OR Client.NoStatus<>@NoStatus3) AND
>  (Client.Status>=@Status4  OR Client.NoStatus<>@NoStatus4) AND
> Client.NoCountry IN (1,2,3,4,5,6,7) AND
> Client.FirstName LIKE @LXList1Clm_No
>
>avoid the parentheses not possible without a fully expansion of the AND operator

Thanks, I will try that and let you know.
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