Objective is to make table unique at ID. Table structure is as in attached image.
Query used is :
select
ID,
concat_ws(' & ' , collect_list(Distinct Gender)) as Gender
from table
group by ID
It can be possible if we can order values within collect_list and then concat but I can't figure out how to do that.
@Hubert Dudekโ @Werner Stinckensโ @Aviral Bhardwajโ @Hemanth Aโ @Omkar Gโ @Yogita Chavanโ @Gam Nguyenโ @Aman Sehgalโ @Ajay Pandeyโ @patโ @Hau Nguyenโ