Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Are indexes ignored COALESCE is used in filter cri

Author  Topic 

ElCapitan
Starting Member

28 Posts

Posted - 2009-01-19 : 06:21:06
Hi all,
Are indexes ignored when COALESCE is used in the WHERE clause criteria or INNER JOIN criteria?

Thanks for your time.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-01-19 : 06:23:22
Most probably.

Use something like

WHERE (Col1 IS NULL OR Col1 = 'abc')

I am not sure which execution plan you will get instead.
It depends on many factors.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -