Re: left outer join issue? - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: left outer join issue?
Date
Msg-id 20040518191704.GA2870@wolff.to
Whole thread Raw
In response to Re: left outer join issue?  (Dev <dev@umpa-us.com>)
List pgsql-general
On Tue, May 18, 2004 at 14:26:18 -0400,
  Dev <dev@umpa-us.com> wrote:
> At 02:28 PM 5/18/2004, Bruno Wolff III wrote:
> >On Tue, May 18, 2004 at 14:10:04 -0400,
> >  Dev <dev@umpa-us.com> wrote:
> >>
> >> Hello all,
> >>
> >> I need to do a left out join where a.field1 ilike %b.field2%
> >>
> >> But I can not figure out the exact syntax to using the ilike in the join?
> >
> >Use the ON clause syntax.
>
> Here is what it actually looks like
>  LEFT OUTER JOIN table4 AS d ON (a.field1 ilike "%d.field2%") )
>
> a is setup for table1 and it is reference in a few other left outer joins.
>
> Those "other" outer joins work fine with out this new part

Maybe this isn't really an left join syntax question as much as
an expression syntax question. Maybe you want:
LEFT OUTER JOIN table4 AS d ON (a.field1 ilike ('%' || d.field2|| '%') )

pgsql-general by date:

Previous
From: Mike Nolan
Date:
Subject: Re: Access to the DB
Next
From: Mike Rylander
Date:
Subject: Re: left outer join issue?