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
Is id a reserved word in sql?
What is sql and db2?
What are schema-level triggers?
Explain locks? : Transact sql
What is left join example?
What are the types of subqueries?
What is a memo field?
How do you delete a table?
Can we create foreign key without primary key?
What do you mean by table in sql?
What is cursor and why it is required?
What is mutating table error?
Whis is not false in primary key?
What is the use of nvl function?
What are different types of sql?