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