0
how to sort a table according to the approximate value of a parameter passed in a stored previous
Ex:
let’s say that in a table the name field has the following values: Tiago, Iago and Thiago and I pass as parameter in the stored "Thiag" field, it should present me the data in the following order:
- Thiago
- James
- Iago
Does anyone know anything that can help me?
This is gonna be heavy, 'cause you’re gonna have to sweep all the records from the table. But I think using a trial that uses distance from Evenshtein is an option. You can put a distance limit not to return all records if you want. Which bank you are using?
– Vinicius Zaramella
I use sql server
– Gustavo Correia