databasedonr
Registered User.
- Local time
- Today, 06:08
- Joined
- Feb 13, 2003
- Messages
- 163
I have two tables -- both have Surname, First name, Middle Name fields.
I want to build a query where I can compare the records in tableA with the records in tableB where the Surname in A is "like" the Surname in B.
The "like" is important, because I am dealing with potentially different spellings. Let's say I have MacDonald in tableA and a McDonald in tableB that may be the same -- the only diffence being the typing ability of the data entry staff. I need to know this!
Also, if I can master the Surname, I would like to be able to do similarly if tableA.Surname Like tableB.Surname and tableA.FirstName like tableB.FirstName.
Is this even remotely possible? I can do the query where the records match (where tableA.Surname = tableB.Surname).
I've tried simply using LIKE as the operator rather than = in the query, but I get exactly the same results.
I want to build a query where I can compare the records in tableA with the records in tableB where the Surname in A is "like" the Surname in B.
The "like" is important, because I am dealing with potentially different spellings. Let's say I have MacDonald in tableA and a McDonald in tableB that may be the same -- the only diffence being the typing ability of the data entry staff. I need to know this!
Also, if I can master the Surname, I would like to be able to do similarly if tableA.Surname Like tableB.Surname and tableA.FirstName like tableB.FirstName.
Is this even remotely possible? I can do the query where the records match (where tableA.Surname = tableB.Surname).
I've tried simply using LIKE as the operator rather than = in the query, but I get exactly the same results.