Hi all,
can any one of you give me a brief difference between case and decode statements...
can any one of you give me a brief difference between case and decode statements...
select decode ( region, ‘N’,’North’, ‘S’,’South’, ‘E’,’East’, ‘W’,’West’, ‘UNKNOWN’ ) from customer;
select case region when ‘N’ then ’North’ when ‘S’ then ’South’ when ‘E’ then ’East’, when ‘W’ then ’West’ else ‘UNKNOWN’ end from customer;
Comment