I have a table like this:
category_id | product_id
---------------------------
1 | 1;2;3;4
2 | 7;8;9
3 | 6
And I want to convert it to this:
category_id | product_id
---------------------------
1 | 1
1 | 2
1 | 3
1 | 4
2 | 7
2 | 8
2 | 9
3 | 6
I have tried splitting the column based on ;
but the product_id count varies based on the category_id. Is there anyway I can achieve this?