I have to eliminate different id and update the ids with the first id using the same product name column in SQL for example:
Actual table:
id product_name
-------------------
p1 apple
p2 apple
p3 grape
p4 grape
p5 grape
The updated table should be like:
id product_name
-------------------
p1 apple
p1 apple
p3 grape
p3 grape
p3 grape