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 -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -