Re: LEFT or RIGHT JOIN - can't see where I'm going wrong?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Pól Ua Laoínecháin <linehanp(at)tcd(dot)ie>
Cc: "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: Re: LEFT or RIGHT JOIN - can't see where I'm going wrong?
Date: 2021-01-23 16:21:14
Message-ID: CAKFQuwYDLhjP9PL5Cg2HGd5jymrAm+tEfX29=0qO4kEJUT8wDA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Saturday, January 23, 2021, Pól Ua Laoínecháin <linehanp(at)tcd(dot)ie> wrote:

>
> What I want is a result for quiz 4 with NULL for the student_points
> fields but including the student_id and esp. the name - I'll put
> COALESCE in for the NULL grade for quiz 4.
>

Cross join students and quizes so every combination is shown then left join
the scores onto that combined relation.

David J.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Santosh Udupi 2021-01-26 15:15:54 Not able to restore generated columns due to a function
Previous Message Pól Ua Laoínecháin 2021-01-23 08:23:16 LEFT or RIGHT JOIN - can't see where I'm going wrong?