I am trying to create a script that will take care of matching (fuzzy) logic.. I have two tables that I am trying to match each other.Table A: SSN LastName FirstName DOB111111111 Chai John 01/01/75111111112 Richard Smith 06/08/71111111113 David Rick 08/30/68111111114 Susan Becker 05/06/81111111115 James Patrick 12/23/65
Table B: SSN LastName FirstName DOB111111111 Chai John 01/01/75111111112 Richard Smith 06/08/72111111113 Dave Rick 08/30/68111111118 Susan Becker 05/06/81
I am trying to match table A to BA LEFT JOIN Band Here is my matching logic: 100% - SSN , Lastname, Firstname, DOB are matching 90% - SSN, Name 80% - SSN, DOB 70% - Name, DOBSO, the final output should look like:Table A: 1 = matching 0 = no mathcing SSN LastName FirstName DOB Matching %111111111 Chai John 01/01/75 1 100%111111112 Richard Smith 06/08/70 1 90% 111111113 David Rick 08/30/68 1 80%111111118 Susan Becker 05/06/81 1 70%111111115 James Patrick 12/23/65 0 0%
How can I build this matching process in one script? May be using a cursor??