I have a table that looks like this:
Names uniqueid
crosby,stills,nash 1
crosby,stills,nash,young 2
crosby 3
stills 4
nash 5
young 6
I split it to:
Names uniqueid name
crosby,stills,nash 1 crosby
crosby,stills,nash 1 stills
crosby,stills,nash 1 nash
crosby,stills,nash,young 2 crosby
crosby,stills,nash,young 2 stills
crosby,stills,nash,young 2 nash
crosby,stills,nash,young 2 young
crosby 3 crosby
stills 4 stills
nash 5 nash
young 6 young
What I want:
Namecombos count
crosby 3
stills 3
nash 3
young 2
crosby,stills 2
stills,nash 2
nash,young 1
crosby,stills,nash 2
stills,nash,young 1
crosby,stills,nash,young 1
What I'm trying to do is find the unique combination of names. Crosby,Stills,Nash,Young has 10 unique combinations: Crosby Stills Nash Young Crosby,Stills Stills,Nash Nash,Young Crosby,Stills,Nash Stills,Nash,Young, Crosby,Stills,Nash,Young
Order is important.
Just need to parse out into unique combinations, then count how many result.
Hopefully that made sense.