adspace


src
name sex
a,male
b,female
c,male
d,female

Required output :
male female
a,b
c,d

tried pivot but was not successfull
select * from src pivot (max(name) for sex in ('MALE','FEMALE'));

Answer Posted / Deepak Pratap Singh

male femalena,bnc,d

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com

1956


How to write a left outer join with the where clause in oracle?

1156


How to select all columns of all rows from a table in oracle?

1132


Design database draw er diagram for a certain scenario ?

4656


How to use values from other tables in update statements using oracle?

1158


How to put more than 1000 values into an oracle in clause?

1115


How to start an oracle instance?

1103


What is oracle latest version?

1174