Protected by Copyscape Web Copyright Protection Software

Pages

Search This Blog

Thursday, March 13, 2014

How to display column values in a row in oracle?


Solution
---------

select
   deptno,
   rtrim (xmlagg (xmlelement (e, ename || ',')).extract ('//text()'), ',') enames
from
   emp
group by
   deptno

No comments:

Post a Comment