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'));


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Oracle General Interview Questions

can u send the sql dumps to sivakumarr1987@gmail.com plz help me

0 Answers  


How do I manually create a database in oracle?

0 Answers  


Can we connect to ORACLE db using Windows Authentication?

0 Answers   MCN Solutions,


When system tablespace is created?

0 Answers  


What is materialized view in Oracle?

0 Answers   MCN Solutions,






1.display list of all users from ur data base.what is the query?

3 Answers   CGI, IBM,


How to get a list of all background sessions in the database?

0 Answers  


What is recovery manager(rman) backup in Oracle?

0 Answers   MCN Solutions,


which language is used to develop the oracle........?

4 Answers   Infosys,


without using count(*) and rownum how can we count total record in a table

5 Answers   AC, HP,


Give the various exception types.

0 Answers  


how to select second mauximum value in a given table under salary column

6 Answers   Sapient,


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)