I have the following @temp table :
------------------------------------
|Condition_ID Operator Order |
| 1 == 1 |
| 2 <> 3 |
| 3 == 2 |
------------------------------------
I want to implement a SELECT CASE that will output a certain message depending on the Operator
However this throws me an Incorrect syntax near the keyword 'PRINT'.
error.
SELECT CASE
WHEN Operator LIKE '=='
THEN PRINT 'EQUALS'
WHEN Operator LIKE '<>'
THEN PRINT 'NOT EQUALS'
END AS Operator
FROM @temp
What am I doing wrong?