3

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?

1
  • If you can show us the strings.. it would help a little Commented Jan 28, 2010 at 8:09

2 Answers 2

2

You might be able to achieve this using SOUNDEX

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.