Hi All,

I have a table:

id1 fld1
----------------
1 hand
2 feet
3 leg

and second table is:

id2 fld2
-----------------
1 I have two hands
2 six feet under
3 last leg of his tour
4 nothing
5 these two go hand in hand


How can I get records of second table THAT CONTAIN text of 'table1.fld1' in
'table2.fld2' by using SQL-SELECT in VPF7. (There should be 4 resultant
records).

TIA

Kamran

Re: finding string of one table in another by Josh

Josh
Tue Jun 22 17:28:41 CDT 2004

not pretty but:
SELECT id2, fld2 from tbl2,tbl1 HAVING ALLTRIM(fld1)$fld2



On Tue, 22 Jun 2004 17:42:01 -0400, "Kamran" <k-a-q@bigmailbox.net> wrote:

>Hi All,
>
>I have a table:
>
>id1 fld1
>----------------
>1 hand
>2 feet
>3 leg
>
>and second table is:
>
>id2 fld2
>-----------------
>1 I have two hands
>2 six feet under
>3 last leg of his tour
>4 nothing
>5 these two go hand in hand
>
>
>How can I get records of second table THAT CONTAIN text of 'table1.fld1' in
>'table2.fld2' by using SQL-SELECT in VPF7. (There should be 4 resultant
>records).
>
>TIA
>
>Kamran
>


---
Remove x's to send.

Re: finding string of one table in another by Anders

Anders
Wed Jun 23 05:09:31 CDT 2004

SELECT * FROM Table1 JOIN Table2 ON Table2.phrase LIKE
'%'+TRIM(Table1.keyword)+'%'

-Anders



"Kamran" <k-a-q@bigmailbox.net> wrote in message
news:eW#YaIKWEHA.1128@TK2MSFTNGP10.phx.gbl...
> Hi All,
>
> I have a table:
>
> id1 fld1
> ----------------
> 1 hand
> 2 feet
> 3 leg
>
> and second table is:
>
> id2 fld2
> -----------------
> 1 I have two hands
> 2 six feet under
> 3 last leg of his tour
> 4 nothing
> 5 these two go hand in hand
>
>
> How can I get records of second table THAT CONTAIN text of 'table1.fld1'
in
> 'table2.fld2' by using SQL-SELECT in VPF7. (There should be 4 resultant
> records).
>
> TIA
>
> Kamran
>
>