views:

188

answers:

2

Hi,

from a resultset of about 5 different strings, I would like to select the result of which the string resembles my given string the most. Is there any possibility to do this in mysql?

+2  A: 

You might be able to achieve this using SOUNDEX

David Hedlund
+1  A: 

This sounds like the perfect application of the Levenshtein distance metric.

It appears that there is at least one UDF implementation of this metric, which may have fallen off the web, and another SQL implementation.

Frank Shearar