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

Re: Concat Distinct rows into a single string

$
0
0

You might be successful if you tell SAP HANA that you want the duplicates to be eliminated.

 

select string_agg_name,',') from

( select distinct name from test

)

 

You might be careful though when your inner select contains an aggregation already. Then the SAP HANA optimizer can find the DISTINCT to be disposable...

But that's problem to deal with when you face it

 

- Lars


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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