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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

best match query

Status
Not open for further replies.

happykiran

Programmer
Joined
Sep 18, 2003
Messages
3
Location
GB
Hi,

I want to know how to exctract the rows that best match the given string.

Eg: My String is 'harrypotter', and in the table, I have got the following values

select names from students;

Names
------------
harry
harrypot
someoneelse
harest
harryp

Among them, I would like to extract 'harrypot', which is the best match

Can someone explain how this could be achieved ?

Thanks in adv.
Kiran.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top