Hey Guys,
I would like to concatenate the flag column as below group by ID and name dynamically.
As the flag can appear multiple times
and the output of the flag needs to be ordered alphabetically as per below.
We don't know how many different flag it would be so we need dynamic concatenation.
Any help would be appreciated please.
Thank you,
I would like to concatenate the flag column as below group by ID and name dynamically.
As the flag can appear multiple times
Code:
ID Name Flag
1 ABC M
1 ABC N
2 DEF P
2 DEF O
2 DEF P
2 DEF O
and the output of the flag needs to be ordered alphabetically as per below.
Code:
ID Name Flag
1 ABC MN
2 DEF OP
We don't know how many different flag it would be so we need dynamic concatenation.
Any help would be appreciated please.
Thank you,