From: Edward Murray <mail@avenuedesign.net>
To: pgsql-sql@postgresql.org
Subject: Re: Left Outer Join Question
Date: Wed, 27 Feb 2002 17:09:50 +1100
Message-ID: <a5htb0$1n81$1@jupiter.hub.org> (raw)
References: <20158.1014789326@sss.pgh.pa.us>
On Wed, 27 Feb 2002 16:59:23 +1100, Tom Lane wrote:
> "Christopher Kings-Lynne" <chriskl@familyhealth.com.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@postgresql.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mail@avenuedesign.net
Subject: Re: Left Outer Join Question
In-Reply-To: <a5htb0$1n81$1@jupiter.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox