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

Popular posts from this blog

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -