Re: SELECT with LEFT OUTER JOIN ON

From: Luis Sousa <llsousa(at)ualg(dot)pt>
To:
Cc: Laurent Patureau <lpatureau(at)idfr(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: SELECT with LEFT OUTER JOIN ON
Date: 2002-02-19 12:20:38
Message-ID: 3C724316.6050303@ualg.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Luis Sousa wrote:

> Instead of:
>
> FROM formation f, ref_unite_de_duree u, ref_unite_de_duree u1
> LEFT OUTER JOIN ON (f.unite_duree_entreprise=u.id
> AND f.unite_duree_totale=u1.id)
>
> try:
>
> FROM formation f LEFT OUTER JOIN ref_unite_de_duree u ON
> (f.unite_duree_entreprise=u.id)
> LEFT OUTER JOIN ref_unite_de_duree u1 ON
> (f.unite_duree_entreprise=u1.id)
>
> I don't know if the results are that you expect but the sintax, I
> think is correct !
>
> Best regards, Luis Sousa
>
Sorry, correction:

try:
FROM formation f LEFT OUTER JOIN ref_unite_de_duree u ON
(f.unite_duree_entreprise) = (u.id)
LEFT OUTER JOIN ref_unite_de_duree u1 ON
(f.unite_duree_entreprise) =(u1.id)

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Henshall, Stuart - WCP 2002-02-19 13:05:05 Re: Join Statements
Previous Message Luis Sousa 2002-02-19 11:06:20 Re: SELECT with LEFT OUTER JOIN ON