Re: The problem with FULL JOIN

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: The problem with FULL JOIN
Дата
Msg-id 87r6ds3y3p.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на The problem with FULL JOIN  (<Eugen.Konkov@aldec.com>)
Список 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 по дате отправления:

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: BUG #4069: Wrong tip
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: The problem with FULL JOIN