This is a follow-up of the question asked here
Let's say that i have another column called "primary" in the schema presented in the question above so now it would look something like this:
Stones Table:
stone_id = 412 upcharge_title = "sapphire" primary = 1
stone_id = 412 upcharge_title = "sapphire" primary = 0
I want to delete the rows that are duplicates in the "stone_id" and "upcharge_title" fields and have the value on the "primary" field equal to 0 but leave the other row that has the value of primary equal to 1?
How can i do that with MySQL?