I am trying to create a sql case case query based on a lot of boolean expressions.
for instance
select CASE a = b OR c = d OR e = f OR g = h
THEN 'x' ELSE 'y' END
from table_name
I keep getting the following error: Incorrect syntax near '='.
Am I doing something that is inherently wrong / illegal in sql, or is it something I can fix? If this is a fix, how can I do this?
Thank!
chama source
share