Does anyone have a idea to matches below 2 situation?
Data:
ID| NAMES
1 | ASHRA MUHAMMAD YUSU
2 | ASHRAF MUHAMMAD YUSUF
3 | YUSUF UTHMAN ABD
=====================
I'm using SqlServer2008, and There are 2 user requirements: (1) Find out the spelling is partly different For example: the user enters "ASHRA YUSU", the following is my expected result:
ID| NAMES
2 | ASHRAF MUHAMMAD YUSUF
(2) Find out the name is exactly the same, allow the order is different For example: the user enters "ASHRA YUSU", the following is my expected result:
ID| NAMES
1 | ASHRA MUHAMMAD YUSU