Re: Repost: Syntax - or unavailability of same - for variable join??? Can anyone help?

From: "Ben" <reply(at)to-the-newsgroup(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Repost: Syntax - or unavailability of same - for variable join??? Can anyone help?
Date: 2004-02-25 20:16:08
Message-ID: 43b5f620037079804508c73e0e4e1579@news.teranews.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

As it turns out, LEFT OUTER JOIN does exactly what I want.

I'm not sure what my original problem was now, though I suspect it was
part of the "where" clause depending on the right side of the join.

So for anyone who might find this thread in a search for this kind of
behaviour, just use LEFT OUTER JOIN. You get the left columns, plus the
right ones where there are records, and NULL for the right columns where
there are no records.

HAVING and GROUP BY have nothing to do with this behaviour, and will lead
you down a dead-end.

Ben

Browse pgsql-general by date

  From Date Subject
Next Message Rick Gigger 2004-02-25 21:10:56 Memory usage
Previous Message Rob Bochenek 2004-02-25 20:10:28 Is there a variant/anytype datatype in postgresql?