----> There is a table T with two columns C1 and C2.
The data is as below:
C1 C2
1 4
2 5
3 6

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you create an empty table from an existing table? : Sql dba

661


What is transaction control language (tcl)?

637


How do you explain an index?

790


What is substitution variable?

583


What is multiple columns?

574






How can you get sql*loader to commit only at the end of the load file? : aql loader

556


Explain the difference between rename and alias?

543


When you have to use a default "rollback to" savepoint of plvlog?

723


what are the performance and scalability characteristics of mysql? : Sql dba

532


What are the uses of merge?

719


Can pl sql procedure have a return statement?

552


Can you rollback after commit?

532


What are the different types of database management systems?

532


How do I count rows in sql?

561


How many commands are in sql?

525