Hello All,
I have a problem statement where in I have to create combinations from the input data received. My input data is as follows
| KeyID | Value |
| AB11 | a,b |
| AB12 | a,b,c |
| AB13 | a,b,c,d |
| A14 | c,d |
I would need the output combinations in the required format
| KeyID | Value | Combination1 | Combination2 | Combination3 | Combination4 | Combination5 | Combination6 | Combination7 | combination8 | combination9 |
| AB11 | a,b | ab | | | | | | | | |
| AB12 | a,b,c | ab | ac | bc | abc | | | | | |
| AB13 | a,b,c,d | ab | ac | ad | bc | bd | cd | bcd | abcd | |
| A14 | c,d | cd | | | | | | | | |
The delimiters in value might not always be the same and would keep varying
Can you please provide an approach on how this could be achieved. Would really appreciate your help
Thanks and Regards,
Abhishek Dinavahi