with w (f) as ( select 'a' from sysibm.sysDummy1 union all select 'b' from sysibm.sysDummy1 ) select f, case when f = 'a' then 'aaah' end case from w