Re: The problem with FULL JOIN - Mailing list pgsql-bugs

From Gregory Stark
Subject Re: The problem with FULL JOIN
Date
Msg-id 87r6ds3y3p.fsf@oxford.xeocode.com
Whole thread Raw
In response to The problem with FULL JOIN  (<Eugen.Konkov@aldec.com>)
List pgsql-bugs
<Eugen.Konkov@aldec.com> writes:

> PROBLEM:
> How to FULL JOIN groups=1 from table 'a' with groups=2 from table 'b'
> and exclude original NULL groups not thouse which FULL JOIN produce?
...

SELECT *
FROM (select * from a where  a.groups = 1) AS a
FULL OUTER JOIN (select * from b where b.groups = 2) AS b
ON (a.num1=b.num1)

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's RemoteDBA services!

pgsql-bugs by date:

Previous
From: Gregory Stark
Date:
Subject: Re: BUG #4069: Wrong tip
Next
From: Stephan Szabo
Date:
Subject: Re: The problem with FULL JOIN