I have a table like this:
GROUP COUNT tag1, tag2 23 tag1, tag2, tag3 12 tag2, tag3 10
I want to create a table like this:
TAG COUNT tag1 35 tag2 45 tag3 22
Basically, I want to split the string in the first table, then count the occurences and then insert into the new table. I am finding it increasingly difficult to split a string in MySQL. I don't mind taking the result to my PHP and working with it there, but the table is 32000 row big and for some reason, my PHP process enters an indefinite SLEEP mode.
So, any pointers on how I can achieve this using purely SQL commands will be much appreciated.