Posts tagged aggregation
Oracle RDBMS 11gR2 – LISTAGG – New aggregation operator for creating (comma) delimited strings
Sep 2nd
Posted by Lucas Jellema in Database
In our series on the 11g R2 release of the Oracle RDBMS, AMIS staff discusses various functions, features an facilities that have been added, improved or extended in this latest release. These articles are the fruit of several months of studying this new release and projecting which new features and changes would be the most useful to us in our daily practice. This article introduced the LISTAGG operator, new in 11gR2.
An example usage of LISTAGG:
select deptno
, avg(sal) avg_sal
, listagg( ename, ',')
within group (order by sal)
enames
from emp
group
by deptno

