RichardODreamweaver wrote:
> There is a "find duplicates" query in SQL that is very
useful but I'm not sure
> what the syntax is for MySQL.
SELECT COUNT(*) AS repetitions, FULLNAME, COMPANY
FROM CONTACTS
GROUP BY FULLNAME, COMPANY
HAVING repetitions > 1
It's not something I have used myself, but I got it from
MySQL Cookbook
by Paul DuBois, published by O'Reilly. I have the first
edition, which
covers MySQL 4.0. I think the second edition covers MySQL
5.0.
If you're using MySQL on a regular basis, you or your
employer should
buy it immediately. It will solve most of your problems and
repay its
cost many times over.
--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/