Re: FULL JOIN is only supported with merge-joinable join conditions

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: FULL JOIN is only supported with merge-joinable join conditions
Дата
Msg-id f2rq51$26g9$1@news.hub.org
обсуждение исходный текст
Ответ на Re: FULL JOIN is only supported with merge-joinable join conditions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> I think the way to get the result you want is to suppress the
> null-containing rows before they get to the FULL JOIN, like so:
>
> regression=# SELECT *
> FROM (SELECT * FROM iandmed WHERE ametikoht IS NOT NULL) AS iandmed
>   FULL JOIN koosseis ON iandmed.ametikoht=koosseis.ametikoht;

Thank you.
In my case koosseis.ametikoht column does not contain null values.
Si I fixed this in WHERE clause

WHERE (iandmed.ametikoht is not null or koosseis.ametikoht is not null)

I hope this   produces same result in my case.

Andrus.

В списке pgsql-general по дате отправления:

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: createdb.exe prompting for password on Vista
Следующее
От: Piotr Konieczny
Дата:
Сообщение: Problem with pg_dump.