----> 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

write a query find which rows of a table is updated on 2 days before?

3 Answers   TCS,


How do I truncate a sql log file?

0 Answers  


can we use out parameter in a function?Give an example.

4 Answers   Logica CMG, TCS,


Is sql low level language?

0 Answers  


can we delete the trigger in a view? if yes why if not why?

5 Answers   Tech Mahindra,






What is rownum and rowid?

0 Answers  


What is the process of debugging?

0 Answers  


hi,i plan to put experience on PLSQL ,can anyone suggest me for any institutes in bangalore or how to prepare for interviews

0 Answers  


What is sql engine in oracle?

0 Answers  


How can we store rows in PL/SQL using array?

0 Answers   MCN Solutions,


what is a control file ? : Sql dba

0 Answers  


which tcp/ip port does sql server run on? : Sql dba

0 Answers  


Categories