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
What is the difference between count 1 and count (*) in a sql query?
How do I copy a table in sql?
what is the difference between where clause and having clause? : Sql dba
What type of database is sql?
Can we use pl sql in sql server?
Can triggers stop a dml statement from executing on a table?
What are pl/sql packages?
How do you update f as m and m as f from the below table testtable?
What will you get by the cursor attribute sql%found?
what is csv? : Sql dba
Does sql profiler affect performance?
What packages(if any) has oracle provided for use by developers?
What is multiple partition?
Is a secondary key the same as a foreign key?
What are tables and fields in the database?