I'll respond a bit later, doing some exercises now. The common solution is to use NULLIF function, I'll adjust my code in a bit.
My blog
My TechNet articles
Looking for new opportunities
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles