Hi, i have mySQL database with some duplicate entries. They have the same field - phone. But they also had fields which differs. At example i have two entries with same phone, but first entry has rating filed = default_value and second entry has rating field = 5. So i must merge this entries and only then delete duplicates...
More common example:
entry1.phone==123
entry1.phone==etry2.phone
entry1.rating!=entry2.phone
entry1.rating==default_value(0)
entry2.rating==5
merge
entry1.phone==123
entry1.rating==5
entry2 is deleted