while doing select in MS SQL very often NULL and '' can be treated identical. There is good description to Combine These: how to use null or empty string
However I wonder if it make sense to put this into a user defined function to simplify queries for this. Does anybody uses such function? Are there strong pro and cons on this one?