T
TA Bran via AccessMonster.com
Hello all,
I’m looking for a way to find and list all similar records across two tables.
(Both tables contain addresses that must remain separate and there is no
common field to link between them.) After some research, I’ve discovered
this is much more difficult than I originally thought. I simply haven’t been
able to determine how I can accomplish this with the use of wildcards so that
if a record in TABLE1 field ADDR1 is ‘123 Main St’, for example, and a record
in TABLE2 is ‘123 Main Street’ it is shown as a match. The following query
works for exact matches but not for like matches:
SELECT *
FROM Table1
WHERE ADDR1 IN (
SELECT DISTINCT ADDR1
FROM Table2
)
Does anyone have any suggestions? Am I missing something obvious here?
Many thanks in advance,
TA
I’m looking for a way to find and list all similar records across two tables.
(Both tables contain addresses that must remain separate and there is no
common field to link between them.) After some research, I’ve discovered
this is much more difficult than I originally thought. I simply haven’t been
able to determine how I can accomplish this with the use of wildcards so that
if a record in TABLE1 field ADDR1 is ‘123 Main St’, for example, and a record
in TABLE2 is ‘123 Main Street’ it is shown as a match. The following query
works for exact matches but not for like matches:
SELECT *
FROM Table1
WHERE ADDR1 IN (
SELECT DISTINCT ADDR1
FROM Table2
)
Does anyone have any suggestions? Am I missing something obvious here?
Many thanks in advance,
TA