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

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

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

python - get cookie expiry time using the requests library -