I am trying to create sets from existing rows but having difficulty. I have some success but it is not coming to what I am expecting.
Here is my existing data and my desired outcome. I tried many grouping and windows functions but not able to come up with a solution.
**Existing Data**
User Date Flags
John 2024-01-11 A,B,C
Doe 2024-01-15 A,B,C
John 2024-01-18 A,B,C,A,B,C
Doe 2024-01-25 A,B,C,A,B,C,A,B,C
**Desired Result**
User Date Flags
John 2024-01-11 A,B,C
Doe 2024-01-15 A,B,C
John 2024-01-18 A,B,C
John 2024-01-18 A,B,C
Doe 2024-01-25 A,B,C
Doe 2024-01-25 A,B,C
Doe 2024-01-25 A,B,C