Re: SELECT with LEFT OUTER JOIN ON - Mailing list pgsql-sql

From Luis Sousa
Subject Re: SELECT with LEFT OUTER JOIN ON
Date
Msg-id 3C724316.6050303@ualg.pt
Whole thread Raw
In response to SELECT with LEFT OUTER JOIN ON  (Laurent Patureau <lpatureau@idfr.net>)
List 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)




pgsql-sql by date:

Previous
From: Luis Sousa
Date:
Subject: Re: SELECT with LEFT OUTER JOIN ON
Next
From: "Henshall, Stuart - WCP"
Date:
Subject: Re: Join Statements