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
Is ms sql traffic encrypted?
How do I start pl sql?
Explain how can you save or place your msg in a table?
What is a scalar value in sql?
What is oracle sql called?
what is the command line end user interface - mysql? : Sql dba
How do you write a complex sql query?
What is the difference between drop and truncate commands?
What does count (*) mean?
What are procedures used for?
What is pl sql architecture?
How many types of cursors are available in pl/sql?
What is sqlite used for?
How do you add a column to a table?
What is database migration?