473,473 Members | 2,277 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help with identifying possible duplicates

4 New Member
I reaaly need some help with this. I'm trying develop a method for listing possible duplicate vendors. The problem is I have tons of legacy vendors that need to be mapped to the current ERP. I have been using multiple LIKE statements with the first 10 characters of the legacy vendors name against the current ERP vendors. Then I use the output listing to manually map the the two. This is fine for only 1000 vendors but I have over 13k unique legacy vendors. MS Access has a limit of 1026 characters in the critieria field. So I was wondering if someone had a better/smarter method to this madness?

Thanks
Mar 1 '07 #1
7 1767
MMcCarthy
14,534 Recognized Expert Moderator MVP
I reaaly need some help with this. I'm trying develop a method for listing possible duplicate vendors. The problem is I have tons of legacy vendors that need to be mapped to the current ERP. I have been using multiple LIKE statements with the first 10 characters of the legacy vendors name against the current ERP vendors. Then I use the output listing to manually map the the two. This is fine for only 1000 vendors but I have over 13k unique legacy vendors. MS Access has a limit of 1026 characters in the critieria field. So I was wondering if someone had a better/smarter method to this madness?

Thanks
Can you post the SQL of the query you are currently using.

Mary
Mar 1 '07 #2
kevin43
4 New Member
This is a sample. This query will run w/o issue but I need to include a heck more LIKE statements.

SELECT Apvenaddr.[VENDOR-LOC], Apvenaddr.[VENDOR-NAME], Apvenaddr.VENDORNAME, Apvenaddr.ADDR1, Apvenaddr.ADDR2, Apvenaddr.ADDR3, Apvenaddr.ADDR4, Apvenaddr.[CITY-ADDR5], Apvenaddr.[STATE-PROV], Apvenaddr.[POSTAL-CODE]
FROM Apvenaddr
WHERE (((Apvenaddr.VENDORNAME) Like "ADELEKEKAM*" Or (Apvenaddr.VENDORNAME) Like "ADELPHIAGR*" Or (Apvenaddr.VENDORNAME) Like "ADEPTMEDIN*" Or (Apvenaddr.VENDORNAME) Like "ADEZABIOME*" Or (Apvenaddr.VENDORNAME) Like "ADJUSTADRA*" Or (Apvenaddr.VENDORNAME)
ORDER BY Apvenaddr.VENDORNAME;
Mar 1 '07 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
What's the table name and field name of the VendorName in the Legacy table.
Mar 1 '07 #4
kevin43
4 New Member
I'm using the legacy vendors to create the LIKE statements. I'm not linking the 2 tables. Should I? If you need a legacy table just use a bogus name [legacy_vendors].
Mar 1 '07 #5
MMcCarthy
14,534 Recognized Expert Moderator MVP
I'm using LegacyVendors as the table name and LegacyName as the name of the Legacy Vendor. Now try the following:

Expand|Select|Wrap|Line Numbers
  1. SELECT Apvenaddr.[VENDOR-LOC], Apvenaddr.[VENDOR-NAME], Apvenaddr.VENDORNAME, Apvenaddr.ADDR1, Apvenaddr.ADDR2, Apvenaddr.ADDR3, Apvenaddr.ADDR4, Apvenaddr.[CITY-ADDR5], Apvenaddr.[STATE-PROV], Apvenaddr.[POSTAL-CODE]
  2. FROM Apvenaddr, LegacyVendors
  3. WHERE (((Apvenaddr.VENDORNAME) Like Left(LegacyVendors.LegacyName, 10) & '*'
  4. ORDER BY Apvenaddr.VENDORNAME;
  5.  
Mar 1 '07 #6
kevin43
4 New Member
With a few minor tweaks that script worked.

Thanks so much.
Mar 1 '07 #7
MMcCarthy
14,534 Recognized Expert Moderator MVP
With a few minor tweaks that script worked.

Thanks so much.
You're welcome.
Mar 1 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

22
by: Rich | last post by:
I am trying to create a site that will re-direct a user based on their OS. For this site I will need to send NT4 and 95 users to site A and 2000/XP users to site B. All others should be directed...
3
by: Andre Doreid Berro | last post by:
Greetings All I have requested help before and I really need your help in this. I am working on an Access database of contacts. I have plenty of records but plenty of them are almost...
11
by: steve smith | last post by:
Hi I'm still having some problems getting my head round this language. A couple of things don't seem to work for me. First I am trying to obtan a count of the number of words in a sting, so am...
6
by: Schorschi | last post by:
This one has got me bam-boz-ald! or however your spell it... I have a sequence of text for example, "One Two Three Four Three Two One Three", and I need a regular expression, if possible, to...
4
by: PaulF | last post by:
How do I identify all of the namespace / prefix pairs associated with an XML document I am reading? Thanks for any help. Paul
4
by: Stephen | last post by:
I volunteer for a non-for profit group and they have alot of names in a multiple databases. the problem is that some people are in multiple databases. and if they send out a mailing from multiple...
9
by: TF | last post by:
Hello all, I made a ASP.NET 2.0 site that shows possible "recipes" for paint colors stored in an access dbase. Basically, 1000 colors are stored with specific RGB values in separate columns. A...
1
by: warezguy05 | last post by:
Hi I'm developing a database driven website (my first one..) but i've run into a problem. My vision: The website should contain a database of DJ's that have played SETS at EVENTS (or raves...
118
by: Chuck Cheeze | last post by:
This might be in the wrong group, but... Here is an example of my data: entry_id cat_id 1 20 2 25 3 30 4 25 5 35
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.