I am writing a query to display an alias column with respect to a column value. below is my code
CASE TRIM(channel_id)
WHEN '' THEN 'General'
ELSE 'Specific'
END AS templateType
When the column channel id is empty/null the templateType column should show 'General' else should show 'Specific'
I am getting wrong output Can anyone help me please..?