Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opportunistic or?
Message
De
06/01/2006 14:24:57
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01083884
Message ID:
01084224
Vues:
10
Justin,

Yes and No,

Yes, the optimizer will try to optimize the query and might scan indexes for both expression connected with OR depending on the choosen optimizer strategy.

No, If doing a table scan (no indexes on the expressions are used) it is not.

Walter,


>Is the OR statement opportunistic in SQL Server 2000?
>
>IOW, if the first condition is met, does it check the second?
>
>TIA,
>
>-Justin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform