SELECT with LEFT OUTER JOIN ON

From: Laurent Patureau <lpatureau(at)idfr(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: SELECT with LEFT OUTER JOIN ON
Date: 2002-02-19 10:00:59
Message-ID: 5.1.0.14.0.20020219105716.02593aa8@pop.noos.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

<html>
<br>
Hi,<br>
my query is :<br><br>
CREATE VIEW &quot;vue_formation&quot; AS SELECT <br>
f.numero_formation, <br>
f.intitule_1 || ' ' || f.intitule_2 || ' ' || f.intitule_3 AS intitule,
<br>
f.convention, <br>
f.subvention, <br>
f.effectif_conv, <br>
f.eff_subv, <br>
f.rythme_1 || ' ' || f.rythme_2 || ' ' || f.rythme_3 AS rythme, <br>
f.duree_entreprise || ' ' || u.nom || ' ' || f.commentaire_duree AS
duree_entreprise, <br>
f.public_1 || ' ' || f.public_2 || ' ' || f.public_3 AS public, <br>
f.admission_1 AS admission_1, <br>
f.admission_2 || ' ' || f.admission_3 AS admission_2, <br>
f.unknown_3 AS ref_admission, <br>
f.statut AS statut, <br>
f.duree_totale || ' '|| u1.nom AS duree_totale <br>
FROM formation f, ref_unite_de_duree u, ref_unite_de_duree u1<br>
LEFT OUTER JOIN ON (f.unite_duree_entreprise=u.id <br>
AND f.unite_duree_totale=u1.id) <br>
ORDER BY intitule<br><br>
There's a mistake near the ON, I don't find any example using join
condition on postgres.org/idocs<br>
Is anybody could help me (correct syntax or link with example).<br>
I find the doc on it not really complete.<br><br>
rgds,<br><br>
<br><br>
<x-sigsep><p></x-sigsep>
Laurent Patureau.<br>
____________________________________<br>
<font size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Laurent Patureau<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</font><font size=1>S.A.R.L.</font><font size=2> ID.fr<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="mailto:lpatureau(at)idfr(dot)net" eudora="autourl">mailto:lpatureau(at)idfr(dot)net</a><br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.idfr.net/" eudora="autourl">http://www.idfr.net</a><br><br>
&nbsp;&nbsp;&nbsp; Porter un nouveau regard à votre audience :<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.wysistat.com/" eudora="autourl">http://www.wysistat.com</a><br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Tel : 03 81 48 03 13<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Fax : 03 81 48 04 83<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16,
Boulevard Winston Churchill<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
25 000 Besançon<br>
___________________________________</font></html>

Attachment Content-Type Size
unknown_filename text/html 2.8 KB

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Luis Sousa 2002-02-19 11:06:20 Re: SELECT with LEFT OUTER JOIN ON
Previous Message ThomasR 2002-02-19 09:58:55 Re: maximum of sums