Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 4C7D04769B6 for ; Tue, 26 Feb 2002 11:39:23 -0500 (EST) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.2) with HTTP id 810507; Tue, 26 Feb 2002 08:39:26 -0800 From: "Josh Berkus" Subject: Re: Removing duplicates To: Matthew Hagerty , pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.5.2 Date: Tue, 26 Feb 2002 08:39:26 -0800 Message-ID: In-Reply-To: <5.1.0.14.2.20020226095955.00b17f10@imap.brwholesale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200202/402 X-Sequence-Number: 6824 Matt, > I have a customer database (name, address1, address2, city, state, > zip) and I need a query (or two) that will give me a mailing list > with the least amount of duplicates possible. I know that precise > matching is not possible, i.e. "P.O. Box 123" will never match "PO > Box 123" without some data massaging, but if I can isolate even 50% > of any duplicates, that would help greatly.