I have a MySQL database table with two columns that interest me. Individually, they may have duplicates, but they should never have duplicates of BOTH of them that have the same meaning.
stone_id can have duplicates if each upsharge header upsharge different value, and vice versa. But let's say, for example, stone_id = 412 and upcharge_title = "sapphire" that the combination should be done only once.
This is normal:
stone_id = 412 upcharge_title = "sapphire" stone_id = 412 upcharge_title = "ruby"
It is not normal:
stone_id = 412 upcharge_title = "sapphire" stone_id = 412 upcharge_title = "sapphire"
Is there a query that will find duplicates in both fields? And if possible, is there a way to establish that my database does not allow this?
I am using MySQL version 4.1.22
mysql duplicates
JD Isaacks Mar 13 '09 at 13:18 2009-03-13 13:18
source share