This article aims to help you understand the DIFFERENCE() function, which is a T-SQL function available in SQL Server, Azure, etc.. The second through fourth characters of the code ar… ERP PLM Business Process Management EHS Management Supply Chain Management eCommerce Quality Management CMMS Manufacturing Here is an example of SOUNDEX() and DIFFERENCE(): Sometimes, you can find messy strings that are written differently, but their sounds are similar or almost similar. Kommentar. No exemplo a seguir, as cadeias de caracteres diferem em consoantes; portanto, a diferença retornada é 2, a maior diferença.In the following example, the strings differ in consonants; therefore, the difference returned is 2, the greater difference. On the SQL Server, you can wrap SOUNDEX in a UDF (User-Defined function). The expression can be a constant, variable or column. The DIFFERENCE() function compares two different SOUNDEX values, and return the value of the integer.This value measures the degree that the SOUNDEX values match, on a scale of 0 to 4. O segundo até o quarto caractere do código são números que representam as letras da expressão.The second through fourth characters of the code are numbers that represent the letters in the expression. Indexes (including indexed views) that contain a persisted computed column defined with SOUNDEX cannot be queried until the index is rebuilt by running the statement ALTER INDEX ALL ON