Re: [GENERAL] Left join help - Mailing list pgsql-general

From David G. Johnston
Subject Re: [GENERAL] Left join help
Date
Msg-id CAKFQuwYxhcAqYaNRY7udkv_4=Npi74OQh57p+BEb0yfxMr7aaA@mail.gmail.com
Whole thread Raw
In response to [GENERAL] Left join help  (Arup Rakshit <aruprakshit1987@outlook.com>)
Responses Re: [GENERAL] Left join help
List 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 by date:

Previous
From: Jon Erdman
Date:
Subject: Re: [GENERAL] Chained slaves smaller?
Next
From: Arup Rakshit
Date:
Subject: Re: [GENERAL] Left join help