When eliminating
NULLvalues with SQL Server queries we typically reach forISNULLorCOALESCEto do the job. Generally speaking they’ll provide equivalent results, but they work in different ways. If you’re dealing with logic more complex thanISNULL(ColA, ColB)– for example using a function or subquery as part of the expression – then you might be in for a surprise.The content of expressions when evaluating
NULLvalues can have big implications on query performance. In this post we’ll look at how the functions work and the implications they can have when evaluatingNULLvalues.
Read on for the performance showdown.