I am trying to find matches between two tables using the name field. Table A has 115 records and I am trying to pull the account number from Table B, which has over 500,000 records. The problem I'm facing is that the two name fields are not in the same format. For example:
Table A Name - John Doe
Table B Name - Doe, John -or- Doe John -or- John M Doe -or-
Doe, John M (you get the idea)
How can I write a query to pull from Table B those records that are similar to the name in Table A. The above example is a very simple case. The names are not limited to Individual people, but can also be Company names. I am just trying to run one query which gives a list of potential matches without having to search each of the 115 names from Table A individually.
Any help would be greatly appreciated!!
Joe Z
Table A Name - John Doe
Table B Name - Doe, John -or- Doe John -or- John M Doe -or-
Doe, John M (you get the idea)
How can I write a query to pull from Table B those records that are similar to the name in Table A. The above example is a very simple case. The names are not limited to Individual people, but can also be Company names. I am just trying to run one query which gives a list of potential matches without having to search each of the 115 names from Table A individually.
Any help would be greatly appreciated!!
Joe Z