T-SQL Obter porcentagem de correspondência de caracteres de 2 strings

Digamos que eu tenha um conjunto de 2 palavras:

Alexander e Alecsander OU Alexander e Alegzander

Alexander e Aleaxnder, ou qualquer outra combinação. Em geral, estamos falando de erro humano ao digitar uma palavra ou um conjunto de palavra

O que eu quero alcançar é obter a porcentagem de correspondência dos caracteres das 2 string

Aqui está o que eu tenho até agora:

    DECLARE @table1 TABLE
(
  nr INT
  , ch CHAR
)

DECLARE @table2 TABLE
(
  nr INT
  , ch CHAR
)


INSERT INTO @table1
SELECT nr,ch FROM  [dbo].[SplitStringIntoCharacters] ('WORD w') --> return a table of characters(spaces included)

INSERT INTO @table2
SELECT nr,ch FROM  [dbo].[SplitStringIntoCharacters] ('WORD 5')

DECLARE @resultsTable TABLE
( 
 ch1 CHAR
 , ch2 CHAR
)
INSERT INTO @resultsTable
SELECT DISTINCt t1.ch ch1, t2.ch ch2 FROM @table1 t1
FULL JOIN @table2 t2 ON  t1.ch = t2.ch  --> returns both matches and missmatches

SELECT * FROM @resultsTable
DECLARE @nrOfMathches INT, @nrOfMismatches INT, @nrOfRowsInResultsTable INT
SELECT  @nrOfMathches = COUNT(1) FROM  @resultsTable WHERE ch1 IS NOT NULL AND ch2 IS NOT NULL
SELECT @nrOfMismatches = COUNT(1) FROM  @resultsTable WHERE ch1 IS NULL OR ch2 IS NULL


SELECT @nrOfRowsInResultsTable = COUNT(1)  FROM @resultsTable


SELECT @nrOfMathches * 100 / @nrOfRowsInResultsTable

OSELECT * FROM @resultsTable retornará o seguinte:

ch1         ch2
NULL        5
[blank]     [blank] 
D           D
O           O
R           R
W           W

questionAnswers(2)

yourAnswerToTheQuestion