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('//test()'),',') single_column
from table_name
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can we avoid duplicating records in a query?
What is attribute indicator in pl sql?
Is inner join faster than left join?
what are the join types in tsql? : Transact sql
What is write ahead logging in sql server?
How do I run pl sql in sql developer?
What is the difference between sql and t sql?
How do you optimize a query?
What is scalar function in sql?
how to enter binary numbers in sql statements? : Sql dba
Can a foreign key have a different name?
When is a declare statement required?
What are the uses of sysdate and user keywords?
What is the usage of nvl function?
how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba