----> There is a table T with two columns C1 and C2.
The data is as below:
C1 C2
1 4
2 5
3 6

Answers were Sorted based on User's Feedback



----> There is a table T with two columns C1 and C2. The data is as below: ..

Answer / a.brahmam

please i want display the result as :
1 2 3
4 5 6

Is This Answer Correct ?    0 Yes 0 No

----> There is a table T with two columns C1 and C2. The data is as below: ..

Answer / nihar meher

select replace(wm_concat(c1),',',' '),replace(wm_concat(c2),',',' ') from t;

Is This Answer Correct ?    0 Yes 0 No

----> There is a table T with two columns C1 and C2. The data is as below: ..

Answer / ramaraju

select c1 as c1 from t1
union
select c2 as c1 from t1;

try this one.

Is This Answer Correct ?    0 Yes 0 No

----> There is a table T with two columns C1 and C2. The data is as below: ..

Answer / bhanuprakash d

select listagg(c1,' ') within group (order by c1) from T
union
select listagg(c2,' ') within group (order by c2) from T

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

hi..........i m Accenture employee...Accenture is an IT company having itz branches in India at Mumbai, Pune,Delhi, Hyderabad, Chennai and Bangalore....Presently there are openings here for SAP, Testing, Oracle,Java,.NET,MAinframe and Peoplesoft...... I am a software engineer working with Accenture,Mumbai....u can mail me in your resume..i`ll forward it to our HR team...my mail id: pankit.lodaya@accenture.com

8 Answers   Wipro,


What is %type in pl sql?

0 Answers  


Can I call a procedure inside a function?

0 Answers  


what are sequences

0 Answers  


what is msql? : Sql dba

0 Answers  






How to run sql commands in sql*plus?

0 Answers  


how to use in conditions? : Sql dba

0 Answers  


What is an inner join sql?

0 Answers  


How can I get the number of records affected by a stored procedure?

0 Answers  


What is pragma exception and how, when, where us

5 Answers  


What is scope of pl sql developer in future?

0 Answers  


oracle is compiler or interpretter,can any one tell me the answer?

9 Answers   Satyam,


Categories