Home Forums SQL Server 2005 T-SQL (SS2K5) IF Exists and a clause questions RE: IF Exists and a clause questions
matt stockham
SSCrazy Eights
Points: 9942
More actions
January 30, 2008 at 11:02 pm
#773634
Regarding the second item, the optimizer is smart enough to know what to look for so that it won't check unnecessary items. I believe that you may get a different plan if you use 2 UNION statements instead of the OR conditions.