Hi, I am trying to transfer values in one table to a new table with a different structure. The current table has 3 fields id, content_id and value and for each content_id there are several records.
I would like to transfer the values for each content_id to just 1 record on the new table but I am unsure how this could be done. I'm not sure I have explained it that great but hopefully this poor example will help.
current table
id |cid| value
1 | 3 | a
2 | 3 | g
new table
id |cid|val1|val2
1 | 3 | a | g