Re: select vs. select count

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Cc: "Claus Guttesen" <kometen(at)gmail(dot)com>
Subject: Re: select vs. select count
Date: 2007-03-27 14:20:08
Message-ID: 200703271620.10123.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Claus Guttesen wrote:
> Why does select and select(count) produce two different results?

count(expression) only counts nonnull values.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jon Horsman 2007-03-27 14:27:18 Re: Foreign Unique Constraint
Previous Message A. Kretschmer 2007-03-27 13:36:42 Re: Foreign Unique Constraint