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!

using MAx

Status
Not open for further replies.

rtdvoip

Programmer
Aug 29, 2003
27
US
Is there a way to use MAX in the following situation?

I have a string '902124543456'
I need to get the closest match in a table with a known index.

ex.

'902124543456' - compare value

table values

index prefix
1 90
1 90
1 90212

any thoughts hints or suggestions?

thanks,
rtdvoip
 
I don't know if it works with INTEGER, but have you checked out the SOUNDEX command? Refer to it in the Books OnLine.

-SQLBill
 
It is all string compares not integer. I will look into the soundex as well. thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top