From this SO POST Finding Duplicates, how can I delete duplicates.
SELECT firstname, lastname, list.address FROM list
INNER JOIN (SELECT address FROM list
GROUP BY address HAVING count(id) > 1) dup ON list.address = dup.address
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
just use the DISTINCT keyword:
if any of the output is a duplicate, mysql will remove them.
for more documentation on DISTINCT go here:
http://www.cyberciti.biz/faq/howto-removing-eliminating-duplicates-from-a-mysql-table/