pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-sql@postgresql.org
Subject: Re: LEFT Join Question
Date: Fri, 26 Jan 2007 07:58:35 -0500
Message-ID: <20070126125835.GC18845@phlogiston.dyndns.org> (raw)
In-Reply-To: <34785f060701251551u23538daej2b45f0c522bf1b7a@mail.gmail.com>
References: <34785f060701251551u23538daej2b45f0c522bf1b7a@mail.gmail.com>

On Thu, Jan 25, 2007 at 06:51:34PM -0500, Rob V wrote:
> 
> I know I have to use a left join - but I can seem to figure out the syntax
> when dealing w/ different columns of the same table.

I haven't tested this to remind myself for sure that it will work,
but I think you ought to be able to RIGHT OUTER JOIN the table you
just LEFT JOINed to to the next table using a different column.

A
-- 
Andrew Sullivan  | ajs@crankycanuck.ca
Information security isn't a technological problem.  It's an economics
problem.
		--Bruce Schneier



view thread (5+ messages)  latest in thread

Message-ID: <20070126125835.GC18845@phlogiston.dyndns.org>
Permalink:  ../20070126125835.GC18845@phlogiston.dyndns.org/
Also on:    postgresql.org/message-id/20070126125835.GC18845@phlogiston.dyndns.org

 · 

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: ajs@crankycanuck.ca
  Subject: Re: LEFT Join Question
  In-Reply-To: <20070126125835.GC18845@phlogiston.dyndns.org>

* 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