Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get closest search results

Status
Not open for further replies.

royyan

Programmer
Jul 18, 2001
148
US
I am trying to write a SQL satetment which will pull th most closest search results out from database. I use Select Top 1 ... WHere SearchString >= 'strSearchString' to get the result. It works fine when there is on one word in search. BUt once I tried to search a phrase, it gives me wrong results sometime.
Can anyone point out a better way to do a best match search? Thanks!
 
How do you define the best match. What do you consider a wrong result?
-Karl

[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top