I've tried looking this up on similar questions but they don't seem to be equivalent.
I'm trying to remove smaller subset groups from a table no matter the order of the values in the group. So keep the larger group and remove smaller groups as long as they are subsets of the larger one.
Group Item
1 A
1 B
1 C
1 D
2 B
2 A
3 B
3 E
3 A
4 Z
4 W
4 Y
In this example since group 1 is largest, i want to keep it. I'd also want to keep group 4 as it isn't a subset of another group. But I want to REMOVE group 2 (as it's a subset of group 1) but not remove group 3 (since it is not a full subset).
I'll also mention that the data is massive and there is no way to determine what the "item" or "group" value will be, so I can't make queries with specific values.