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!

Comparing PART of one string with PART of another 2

Status
Not open for further replies.

DiggerDog

Programmer
Nov 24, 2002
60
AU
Hi
I need to compare one string with another and if ANY part of the first string is in any part of the other string then I get a match.

E.g

Comparing "Elephant Ears" to "Grey Elephant" = true match
OR
Comparing "Grey Elephant" to "Earl Grey Tea" = true match
OR
Comparing "Earl Grey Tea" to "Teatime" = true match


Any help would be wonderful

thank you

 
General idea: split each string into table of words, then inner join these tables. Return true if there is at least one record present, otherwise false.
 
Way to think outside the box, vongrunt !!
A star you are.

-------------------------
The trouble with doing something right the first time is that noboby appreciates how difficult it was.
- Steven Wright
 
Simple but effective - Works a treat Vongrunt
I agree with John - a star you are
thanks a million
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top