have table with two columns with datatypes as number and
varchar and the values in
A column like 1,2,3 AND B column values like a,b,c.
now need to display data in a single column as 1,a,2,b,3,c.
Answer Posted / prativa mishra
select rtrim(xmlagg(xmlelement("c",A||' ,'||B||',')).extract('//text()'),',') single_column
from table_name
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How subquery works in sql?
Is pl sql and postgresql same?
What are the different types of tables in sql?
Does inner join remove duplicates?
Is hadoop a nosql?
Explain table and field in sql?
What is the difference between microsoft sql and mysql?
Why is there a need for sqlcode and sqlerrm variables?
How does one load ebcdic data? : aql loader
What is the difference between between and in condition operators?
What is the difference between drop and truncate commands?
What is example of database?
What is record type in pl sql?
what is a trigger in mysql? Define different types of trigger. : Sql dba
What is index example?