Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: Left Outer Join Question - Mailing list pgsql-sql

From Tom Lane
Subject Re: Left Outer Join Question
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Left Outer Join Question  ("Christopher Kings-Lynne" <[email protected]>)
Responses Re: Left Outer Join Question
List pgsql-sql
"Christopher Kings-Lynne" <[email protected]> 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
        regards, tom lane


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Timestamp output
Next
From: "grep"
Date:
Subject: Bad design or SQL statment quandary