MySQL Forums
Forum List  »  General

Re: double mistakes
Posted by: Geert Vanderkelen
Date: March 11, 2005 07:33AM

Hi ,

You can find doubles this way:

select name, count(*) as cnt from customer group by name having count > 1;

This will give you all names that have two or more entries.

You then can do:

select * from customer where name = '<name>';
to find the records and eventually change them.


Regards,

Geert

Options: ReplyQuote


Subject
Written By
Posted
snk
March 11, 2005 06:31AM
Re: double mistakes
March 11, 2005 07:33AM
March 11, 2005 07:38AM
snk
March 11, 2005 10:04AM


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.