oracle - How to get combined output from a inner subquery? -


my output:

a   b   c   d       e       f 773 26  429 150000  500000  800000 773 26  117 150000  500000  800000 808 26  26  150000  500000  800000 809 26  26  150000  500000  800000 

need output below:

a   b   c   d   e   f 773 26  429 150000       773 26  117 150000       808 26  26      500000   809 26  26          800000 

i need column d e & f shown above.based on column amount in d,e,f should displayed. how acheieve this?

thanks in advance.

you can use case determine whether value of column or null should returned

select      ,   b ,   c ,   case when 773 d else null end d ,   case when 808 e else null end e ,   case when 809 f else null end f table_name ; 

Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -