I have two tables of addresses that I am trying to match to. Both are structured with Street (including number), city, state and zipcode. In my query, I am trying to join the two tables Like this:
JOIN [AxSupport].[dbo].Address ADR ON LPA.City = ADR.City
and LPA.State = ADR.State
and ADR.ZipCode = LPA.ZIPCODE
and ADR.COUNTRY = LPA.COUNTRY
and ADR.Street = LPA.STREET
I tested with one customer that has 2020 address records records and the joined result only returns 79 records. If I change the street comparison to Soundex(ADR.Street) = SoundEx(LPA.Street) I get 2660 records. Is there another way of formatting the streets to get an accurate return?