Hello, I am having some transact SQL problems.
ALLOWED:
Code:
Column1,
CASE FOO
WHEN 1 THEN 'Hello'
ELSE 'Goodbye'
END as MyValue,
Column2
NOT ALLOWED:
Code:
Column1,
CASE FOO
WHEN > 1 THEN 'Hello'
ELSE 'Goodbye'
END as MyValue,
Column2
The problem seems to be the > symbol. Apparantly the case statement is only for equality checks, and nothing else.
So, what can I do to fix this? I have these kinds of comparisons all over.
~Le