TABLE OUTPUT TABLE
U_ID|PRODUCT|BRANCH U_ID RESULT
1 AL 8 1 8~AL-BL+1~HG-IK
1 BL 8
1 HJ 1
1 IK 1
2 IK 6
2 Po 8
3 UY 6
As shown in the snippet strings from two columns should be concatenated based on u_id column and in this requirement the final concatenated string should be distinct..
It is a Oracle database
I tried using LISTAGG function but not getting result for two columns.. any idea will help me a lot.. thanks