I have a DB column that stores info with a comma separator. (ie burger, bun, cheese). I have numerous rows many with similar entries in this column. So it looks like:
1- burger, bun, cheese
2- burger, bun
3- burger, bun, cheese, mustard
4- burger, bun, mustard
6- burger, bun, cheese, ketchup
7- burger, bun, ketchup
9- burger, bun, cheese, onions
10- burger, bun, onions, mustard
So I can't just use GROUP BY because the info is different. What I'm trying to get is:
burger
bun
cheese
ketchup
mustard
onions
I know there's a way to do it but I don't know how. Also, I'm really bad with arrays so if anybody recommends that could you be clear about how to do it.