Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 1 to 6 of 6 total |
Duplicate records |
Wed, Mar 14 2007 7:02 AM | Permanent Link |
john.s | Hi, could someone plesase give me a clue as to how i can find out if i have duplicate records in a table for a field called Address.
Many thanks John |
Wed, Mar 14 2007 8:43 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | John
Its not trivial. If they are exact matches you can use the HAVING clause (there are examples in these ngs) but if you want to catch things like Main Street Mian Street Main St Main St. 9 Saxon Way 9, Saxon Way 9 Saxon Way its more difficult. What level of duplication are you trying to detect? Roy Lambert |
Wed, Mar 14 2007 10:18 AM | Permanent Link |
John,
You can try something like: SELECT DisplayName Dupname, COUNT(*) INTO memory\temp FROM Clients GROUP BY DisplayName HAVING COUNT(*) > 1 ; SELECT DisplayName,ClientID from Clients JOIN memory\temp on DisplayName = Dupname ORDER BY DisplayName; clientid would be a unique identifier for reference. Regards, Scott. "john.s" <john.s@hotmail.com> wrote in message news:B2AE9C01-E6C2-4E8B-8F70-185CBA3BE455@news.elevatesoft.com... > Hi, could someone plesase give me a clue as to how i can find out if i > have duplicate records in a table for a field called Address. > > Many thanks > > John > | |
Wed, Mar 14 2007 6:23 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< Its not trivial. If they are exact matches you can use the HAVING clause (there are examples in these ngs) but if you want to catch things like >> A custom SQL function could solve that also: http://www.elevatesoft.com/dbisam4d5_customizing_engine.htm -- Tim Young Elevate Software www.elevatesoft.com |
Thu, Mar 15 2007 4:11 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Tim
><< Its not trivial. If they are exact matches you can use the HAVING clause >(there are examples in these ngs) but if you want to catch things like >> > >A custom SQL function could solve that also: Possible but a bitch to write. I was involved with deduping applications when a couple of privatisations (eg British Gas) took place and its horrendous. With everything we threw at it in terms of fuzzy matching there were still thousands of records we had to eyeball. Roy Lambert |
Fri, Mar 16 2007 3:36 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< Possible but a bitch to write. I was involved with deduping applications when a couple of privatisations (eg British Gas) took place and its horrendous. With everything we threw at it in terms of fuzzy matching there were still thousands of records we had to eyeball. >> Sure. I was just pointing out that it could do a little more complex matching than straight SQL. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Friday, May 3, 2024 at 06:06 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |