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

Question: Below is the table city gender name delhi male a delhi female b mumbai male c mumbai female d delhi male e I want the o/p as follows: male female delhi 2 1 mumbai 1 1 Please help me in writing the query that can yield the o/p mentioned above?

2 Answers  


how to create a new table in mysql? : Sql dba

0 Answers  


What is the full form of sql?

1 Answers  


What is pl sql code?

0 Answers  


Mention what does plv msg allows you to do?

0 Answers  






What does select count (*) mean in sql?

0 Answers  


What is pseudo column ?

6 Answers   ABB,


Can you have a foreign key without a primary key?

0 Answers  


If there are 1 to 100 numbers in a table and in that 100 numbers some 10 numbers are deleted.I want to find out the missing numbers between 1 to 100 by pl/sql how?

9 Answers   JPMorgan Chase,


What is data type in sql?

0 Answers  


Hi all, i have a table as follows empid empname mgrid deptid 1 a 3 4 2 b 1 5 3 c 2 3 4 d 3 6 5 e 4 7 i want the output as empname mgrname a c b a c b d c e d

4 Answers  


What is execution plan in sql?

0 Answers  


Categories