pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: Edward Murray <mail@avenuedesign.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Left Outer Join Question
Date: Wed, 27 Feb 2002 00:55:26 -0500
Message-ID: <20158.1014789326@sss.pgh.pa.us> (raw)
In-Reply-To: <GNELIHDDFBOCMGBFGEFOCEJCCBAA.chriskl@familyhealth.com.au>
References: <GNELIHDDFBOCMGBFGEFOCEJCCBAA.chriskl@familyhealth.com.au>

"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

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <20158.1014789326@sss.pgh.pa.us>
Permalink:  ../20158.1014789326@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20158.1014789326@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, chriskl@familyhealth.com.au, mail@avenuedesign.net
  Subject: Re: Left Outer Join Question
  In-Reply-To: <20158.1014789326@sss.pgh.pa.us>

* 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