Re: [GENERAL] Left join help

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [GENERAL] Left join help
Дата
Msg-id CAKFQuwYxhcAqYaNRY7udkv_4=Npi74OQh57p+BEb0yfxMr7aaA@mail.gmail.com
обсуждение исходный текст
Ответ на [GENERAL] Left join help  (Arup Rakshit <aruprakshit1987@outlook.com>)
Ответы Re: [GENERAL] Left join help
Список pgsql-general
On Friday, June 23, 2017, Arup Rakshit <aruprakshit1987@outlook.com> wrote:
FROM "missions" LEFT JOIN submissions ON submissions.mission_id = missions.id
INNER JOIN members ON members.id = submissions.member_id

Quick look here but having submissions as part of the inner join with members defeats the attempt at left joining it with missions.  You might need to add parentheses to put the joins in the correct order, or something.  Why it gives zero results we cannot say without a self-contained example.

David J.

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

Предыдущее
От: Jon Erdman
Дата:
Сообщение: Re: [GENERAL] Chained slaves smaller?
Следующее
От: Arup Rakshit
Дата:
Сообщение: Re: [GENERAL] Left join help