Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Listagg, wm_concat or Group_concat equivalent in teradata - forum topic by jsamantarai

$
0
0

 

I want to aggregate as "comma-separated values" within a "group by", like MYSQL group_concat:

SELECT dept, GROUP_CONCAT(ename) as employees FROM EMP GROUP BY dept;
or ORACLE listagg:
select dept, listagg(ename, ',') within group (order by ename) as employees ..
What the equivalent SQL syntax  in teradata.
 

Forums: 

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>