ELSE NULL
SQL-L035Do not specify ELSE NULL
in a CASE WHEN
statement
as it maybe redundant.
select
case
when name like '%cat%' then 'meow'
when name like '%dog%' then 'woof'
else null
end
from x
select
case
when name like '%cat%' then 'meow'
when name like '%dog%' then 'woof'
end
from x