I have a table Emails with the following fields:
ID|Email |Bounced|GroupID
----------------------------------------
1 |**email1@domain.com**|0 |1
2 |**email1@domain.com**|1 |2
3 |email2@domain.com |0 |1
What I want to achieve is to delete duplicates from table Email_Table I.e. Remove both that have ID 1 and 2 and for all similar in table.
I found some MysQL code but it didn't do the job:
ALTER IGNORE TABLE email_table ADD UNIQUE INDEX(email,bounced);
How do I achieve this?
I am trying to remove bounced emails from interspire in whichever contact list they exist; sometimes the same email exists in two groups.
This is a unique question as I am not about to remove duplicate from one field...I need to remove duplicate in one field having it is available in many other groups with condition it has bounced value Thank you