----> 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
Answer / a.brahmam
please i want display the result as :
1 2 3
4 5 6
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nihar meher
select replace(wm_concat(c1),',',' '),replace(wm_concat(c2),',',' ') from t;
Is This Answer Correct ? | 0 Yes | 0 No |
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 |
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 |
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?
how to create a new table in mysql? : Sql dba
What is the full form of sql?
What is pl sql code?
Mention what does plv msg allows you to do?
What does select count (*) mean in sql?
What is pseudo column ?
Can you have a foreign key without a primary key?
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?
What is data type in sql?
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
What is execution plan in sql?