MySQL Forums
Forum List  »  Newbie

Remove duplicated entries (between 2 columns)
Posted by: Frankov Boslesky
Date: May 31, 2005 01:12PM

I have a customer table, which contains 2 email columns...

One's for the home email, the 2nd one for the office email.

I made a little php script that fetches all the emails, and sends an html email according to the table info...

Problem is, I don't want to send the email to the same address twice, and some emails avec duplicated 3 or 4 times (within diff. users)....

Here's a quick example :
http://www.question-graphique.com/problem.jpg

Is there a way to keep ONE record of each address, and update the duplicates to a blank ?

After that, I will add some code that will verify if the email is already inserted.

Thanks,

Options: ReplyQuote


Subject
Written By
Posted
Remove duplicated entries (between 2 columns)
May 31, 2005 01:12PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.