Michael L John (11/16/2015)
For starters, you cannot use a case statement in a where clause in this manner.
More specifically, CASE statements cannot return Boolean values, because SQL does not have a Boolean datatype. (Although you can model some of the aspects of a Boolean datatype with BIT.)
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA