View Single Post
Old 11-30-2012, 11:16 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,210
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Yes. No. Sort of. For starters, you would only get "monica" once. You can only get one match out of a single record:
Code:
SELECT T1.field1, T2.f
FROM someTable AS T1, anotherTable AS T2
WHERE T2.f LIKE CONCAT('%',T1.field1,'%')
ORDER BY T1.field1
Also, how do you expect to get "bill gates" when the search term is just "bill"? Suppose the text said "....bill says that Bill of attainder is doing somethiing to monica lewinsky.... and monica lewinsky.."

That's going to find "bill" just the same as it would find "bill" in "bill gates".

In the above, would you expect then to find "bill of" or "bill of attainder" or "bill says" or????

You can only find what you search for.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote