I'm trying to use CASE to return a text string when a cell is a certain integer, otherwise return the original integer value.
SELECT
CASE WHEN table.column_name = 10 THEN 'yes'
ELSE table.column_name
END
FROM table
I'm getting an error that 'yes' is an invalid input syntax, since it's a string and column_name is stored as integers.