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

What is a temporal table?

0 Answers  


what is single byte over head in oracle..?

0 Answers  


How do you copy a table in sql?

0 Answers  


What is synchronized subquery?

0 Answers  


Types of joins ?

11 Answers   Polaris, TCS,






Can we change the table name in sql?

0 Answers  


explain mysql aggregate functions. : Sql dba

0 Answers  


Can delete statement be rollbacked?

0 Answers  


What is a null value?

0 Answers  


What are pl/sql cursor exceptions?

0 Answers  


how to drop an existing index in mysql? : Sql dba

0 Answers  


What is Function based Index and which type of function we can use in Function base index. can we use aggregate,NVL function in Function based Index..

1 Answers   Metric Stream, Polaris,


Categories