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
what is the difference between cluster and non cluster index? : Sql dba
define sql update statement ? : Sql dba
What is rollback?
How do you update sql?
what is the difference between a having clause and a where clause? : Sql dba
What is clustered index in sql?
what are the drivers in mysql? : Sql dba
What is the basic structure of an sql?
How to change the order of columns in Oracle SQL Plus ?
what is transaction? : Sql dba
How global cursor can be declare with dynamic trigger ?
how to extract a unit value from a date and time? : Sql dba
What is data abstraction in sql?
Explain the purpose of %type and %rowtype data types?
What are the different types of a subquery?