how to select record whose matching percentage is higher than other using like operator in sql server?
问题 I have set of records which I need to search using criteria. But criteria is returning me multiple rows. So I need top 2 records which are having maximum percentage of criteria matching. I worked on fuzzy logic but found that it is too complex for such simple problems. I have scenarios like below: SELECT DISTINCT FirstName, LastName, CountryName, StateName FROM Employee Say for example above one is returning me 5 records. What I want is like use "like" operator thru which I can find that