Rather than explain the whole situation, which would just add confusion to the matter, I've just decided to go with a very light table example and ask my question below it
I have a database table which looks kind of like this:
product_id | category_id | category_name
1 1 Cat One
2 2 Cat One
3 3 Cat One
4 4 Cat Two
4 5 Cat Two
How can I set the second and third row to have the same category_id as the first? So it looks like:
product_id | category_id | category_name
1 1 Cat One
2 1 Cat One
3 1 Cat One
4 4 Cat Two
5 4 Cat Two
Bearing in mind I need to do this for 12,474 rows! :(
I've been bashing my head against the desk for hours with this. Any ideas would be massively appreciated
Thanks, Andy
P.S: I forgot to add that the category_id's should be the same because the category_name is Cat One for all of them
Edit 2: edited table sample a bit to avoid confusion