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

Why use subqueries instead of joins?

0 Answers  


What is having clause in sql?

0 Answers  


What are sql ddl commands?

0 Answers  


what is an alias command? : Sql dba

0 Answers  


What are different types of sql commands?

0 Answers  






I have a procedure in a procedure. The inner procedure contains out parameter. How I can call the inner procedure in the out procedure and send the inner procedure parameter value(out parameter value) into out procedure?

2 Answers  


What is INSTEAD OF trigger ?

13 Answers   Hexaware, TCS,


How to perform a loop through all tables in pl/sql?

4 Answers   Evosys, MBT,


how to fetch alternate records from a table? : Sql dba

0 Answers  


Can we use threading in pl/sql?

0 Answers  


What are the different types of a subquery?

0 Answers  


What is the syntax to add a record to a table?

0 Answers  


Categories