Re: LEFT OUTER JOIN issue

Поиск
Список
Период
Сортировка
От Harald Fuchs
Тема Re: LEFT OUTER JOIN issue
Дата
Msg-id puochcbwah.fsf@srv.protecting.net
обсуждение исходный текст
Ответ на LEFT OUTER JOIN issue  (Thomas BOURIMECH <thomas.bourimech@metnext.com>)
Список pgsql-sql
In article <987929295D1345B5BCE249F42730CB82@marktestcr.marktest.pt>,
"Oliveiros" <oliveiros.cristina@marktest.pt> writes:

> Hi, Thomas.
> I believe it is because of your WHERE clause, which is filtering out the nulls
> from hp table.

> According to

> WHERE

> hp.poste_idposte = 275

> You only want registers that have hp.poste_idposte = 275, not the null ones.

Yes, the WHERE effectively turns the outer into an inner join, thus
removing rows from the right table.  By moving the WHERE to the JOIN
condition, you get the result you expected.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problem with insert related to different schemas
Следующее
От: Gonzalo Aguilar Delgado
Дата:
Сообщение: Re: Problem with insert related to different schemas