Well, you might consider creating a computed column in a second table to normalize the phone number format - something like:
ALTER TABLE dbo.YourSecondTable ADD NormalizedPhone AS REPLACE(REPLACE(PhoneColumn, '-', ''), ' ', '') PERSISTED
This expression removes any spaces and any dashes from PhoneColumn , and these values ββare stored in a new computed column called NormalizedPhone .
This column will always be updated, even if you change the PhoneColumn value later. It will always contain a normalized phone number automatically.
Now you can easily join the two tables on normalized phone lines, and you should get more accurate results.
source share