Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: procedure in hana

$
0
0

Hello,

 

you can use the STRING_AGG aggregation function.

 

If "Header 1" column name is e.g. "COL1" and "Header 2" column name is e.g. "COL2" the statement would look like following.

 

SELECT "COL1", STRING_AGG("COL2",', ')
FROM <schema>.<table>
GROUP BY "COL1";

Best Regards,

Florian


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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