Subject | Re: Duplictes query |
---|---|
Author | Syarzhuk Kazachenka |
Post date | 2001-06-05T17:29:15Z |
>I have a straightforward name & address table,Dunno what you do about "some degree of mismatch", but straight duplicates
>each record has a unique ID (primary key)
>I need to identify the ID of those records
>that are duplicated across the name and address
>fields, possibly with some degree of mismatch (ie a %LIKE% element)
are found by running the following query:
SELECT T.Name, T.Address, Count(T.ID)
FROM TableName T
GROUP BY T.Name, T.Address
HAVING Count(T.ID) > 1
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com