Sql Case Expression Evaluation Issue Stack Overflow

Sql Case Expression Evaluation Issue Stack Overflow