I\'ve been battling this one for a while now. I have a stored proc that takes in 3 parameters that are used to filter. If a specific value is passed in, I want to filter on that
No other way I can think of then doing:
WHERE
(MyCase IS NULL OR MyCase = @MyCaseParameter) AND ....
The second one is more simpler and readable to ther developers if you ask me.