SQL pivot query in Oracle -
i have table this:
name----address----type----value finland color 120 finland wage 500
what want show color
, wage
values columns:
name----address----color----wage finland 120 500
select * (select name, address, type, value table) pivot (sum(value) (type) in ('color', 'wage'));
Comments
Post a Comment