pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bryce Nesbitt <bryce1@obviously.com>
To: pgsql-sql@postgresql.org
Subject: Re: Doing a conditional aggregate (e.g. count(*) if x=y) in postgres?
Date: Mon, 14 May 2007 16:48:06 -0700
Message-ID: <4648F536.80303@obviously.com> (raw)
In-Reply-To: <4648EE4F.3040005@polimetrix.com>
References: <4648E8F1.4020609@obviously.com>
	<4648EE4F.3040005@polimetrix.com>

Ah perfect.  I was struggling with CASE outside the SUM(), which was not
working.



view thread (4+ messages)

Message-ID: <4648F536.80303@obviously.com>
Permalink:  ../4648F536.80303@obviously.com/
Also on:    postgresql.org/message-id/4648F536.80303@obviously.com

 · 

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: bryce1@obviously.com
  Subject: Re: Doing a conditional aggregate (e.g. count(*) if x=y) in postgres?
  In-Reply-To: <4648F536.80303@obviously.com>

* 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