• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

MS SQL 2008 question - Difference function

brandonb

Diamond Member
Hi All,

I have a question.

SELECT DIFFERENCE('BREWER', 'BUTLER')
SELECT DIFFERENCE('BUTLER', 'BREWER')

Why do these return different results? Is it a bug?
 
A short explanation is that 'Brewer' sounds more like 'Butler' than 'Butler' sounds like 'Brewer'

Edit: Also, this is not a bug.
 
A short explanation is that 'Brewer' sounds more like 'Butler' than 'Butler' sounds like 'Brewer'

Edit: Also, this is not a bug.
? weird to think about. Do you know how it is calculating the numbers, I would be interested to know.

I can understand that mathematically 3 - 2 isn't the same as 2 - 3. I just don't see where this function is deriving its numbers from.
 
When I run the soundex function, I get B660 for Brewer, and B346 for Butler. It probably has to do with the repeating 6.
 
Back
Top