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 is a common use of group by in sql?
What is trigger types of trigger?
What is a sql instance vs database?
What are the types of records?
how to analyze tables with 'mysqlcheck'? : Sql dba
What is sql analyzer?
What is the difference between an inner and outer join?
What's the difference between a primary key and a clustered index?
What does joining a thread mean?
Can you join a table to itself?
What are the advantages of normalization?
Is null operator in sql?
Explain what is a column in a table?
Why we use triggers in mysql?
What is join view in sql?