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