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
Does varchar need length?
Explain the rollback statement?
Explain autonomous transaction.
What is memory optimized?
What is the difference between a database and a relational database?
What is cte sql?
What is difference between primary and secondary key?
What are tables in sql?
how to shut down the server with 'mysqladmin'? : Sql dba
What is break?
Is null operator in sql?
- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?
what is a composite key ? : Sql dba
What is varchar sql?
What are different categories of sql commands?