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 / krishna
select rtrim(xmlagg(xmlelement(E,
EMPID||','||NAME||','||'')).extract('//text()') ,',')
empid from emp1
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
what are the different tables present in mysql? : Sql dba
What is asqueryable?
Difference between truncate, delete and drop commands?
Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.
Why we use pl sql?
What is the difference between partition and index?
What is multiple partition?
Which is better cte or subquery?
Does sql full backup truncate logs?
what is data control language? : Sql dba
name 3 ways to get an accurate count of the number of records in a table? : Sql dba
How do I remove sql plus from windows 10?
What are stored procedures used for?
Explain the the update statement in sql?
Are stored procedures faster than dynamic sql?