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 to raise user-defined exception with custom sqlerrm ?
How to install oracle sql developer?
what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba
What is the mutating table and constraining table?
How to disable a trigger name update_salary?
What does the hierarchical profiler does?
explain access control lists. : Sql dba
How do I view a procedure in sql?
What are the different dml commands in sql?
What does pl sql developer do?
define sql update statement ? : Sql dba
Is postgresql a server?
How many types of privileges are available in sql?
What are all the different normalizations?
What does dml mean?