Re: Left Outer Join Question

From: Edward Murray <mail(at)avenuedesign(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Left Outer Join Question
Date: 2002-02-27 06:09:50
Message-ID: a5htb0$1n81$1@jupiter.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, 27 Feb 2002 16:59:23 +1100, Tom Lane wrote:

> "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> writes:
>> What's probably happening is that count isn't counting NULLs?
>
> As per spec. If you want to count records independently of whether any
> particular column is NULL or not, use count(*). See the docs, notably
> http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/sql-expressions.html#SYNTAX-AGGREGATES

I think the problem is that the rows are not being returned by the query
at all not that any particular column is null. Do I need to perform
another outer join? I am not sure how to tackle this problem.

> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2002-02-27 06:55:37 Re: Left Outer Join Question
Previous Message Christopher Kings-Lynne 2002-02-27 06:04:54 Re: Left Outer Join Question