×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Hi,
is your field fixed containing the like information or varying length?
If it's fixed, try to surround it with a TRIM:
From T1 join T2 like '%' concat TRIM(T2.PartFld) concat '%'
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Ron Adams
Gesendet: Friday, 16. April 2010 00:16
An: Midrange Systems Technical Discussion
Betreff: Re: SQL JOIN with LIKE
Thanks Dennis,
That's what I thought as well. But it only returns 11 rows which I know
isn't right, because I can query them individually using multiple like
statements and I'm seeing over 1000 rows when I do it that way.
Ron
Wouldn't this work:
SELECT ... FROM TABLE1 T1
JOIN TABLE2 T2 on T1.FIELD LIKE '%'||T2.PARTFIELD||'%'
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
As an Amazon Associate we earn from qualifying purchases.