Re: Left join help

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Arup Rakshit <aruprakshit1987(at)outlook(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Left join help
Date: 2017-06-23 21:48:38
Message-ID: CAKFQuwYxhcAqYaNRY7udkv_4=Npi74OQh57p+BEb0yfxMr7aaA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday, June 23, 2017, Arup Rakshit <aruprakshit1987(at)outlook(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Arup Rakshit 2017-06-23 22:17:59 Re: Left join help
Previous Message Jon Erdman 2017-06-23 21:39:20 Re: Chained slaves smaller?