Searched CASE expressions use conditions to determine the returned value and have the following syntax:
CASE WHEN condition1 THEN result1 WHEN condition2 THEN result2 ... WHEN conditionN THEN resultN ELSE default_result END
where