pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Luis Sousa <llsousa@ualg.pt>
To: Laurent Patureau <lpatureau@idfr.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: SELECT with LEFT OUTER JOIN ON
Date: Tue, 19 Feb 2002 11:06:20 +0000
Message-ID: <3C7231AC.4010808@ualg.pt> (raw)
References: <5.1.0.14.0.20020219105716.02593aa8@pop.noos.fr>

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




view thread (3+ messages)  latest in thread

Message-ID: <3C7231AC.4010808@ualg.pt>
Permalink:  ../3C7231AC.4010808@ualg.pt/
Also on:    postgresql.org/message-id/3C7231AC.4010808@ualg.pt

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: llsousa@ualg.pt, lpatureau@idfr.net
  Subject: Re: SELECT with LEFT OUTER JOIN ON
  In-Reply-To: <3C7231AC.4010808@ualg.pt>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox