Re: outer joins

Поиск
Список
Период
Сортировка
От D Kavan
Тема Re: outer joins
Дата
Msg-id BAY102-F1548EC8F7F13114369AE2FD1C70@phx.gbl
обсуждение исходный текст
Ответ на Re: outer joins  ("Jason Minion" <jason.minion@sigler.com>)
Ответы Re: outer joins
Re: outer joins
Список pgsql-admin
Hi,

Thanks for the reply.  That didn't help him, but he asked me to post this.

There are 66 project id's in the project table and 3 rows in the
project_members table for global_id 2915, but it only returns 3.  I would
think it should return 66 rows, with 63 of them having a null pm.project_id.

SELECT
       p.project_id, pm.project_id
       FROM project p
LEFT OUTER JOIN project_members pm ON p.project_id = pm.project_id
where (pm.project_id is null or pm.global_id = 2915)



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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: outer joins
Следующее
От: "Jason Minion"
Дата:
Сообщение: Re: outer joins