Re: Yet Another COUNT(*)...WHERE...question - Mailing list pgsql-general

From Gregory Stark
Subject Re: Yet Another COUNT(*)...WHERE...question
Date
Msg-id 87fy2krh7y.fsf@oxford.xeocode.com
Whole thread Raw
In response to Yet Another COUNT(*)...WHERE...question  ("Phoenix Kiula" <phoenix.kiula@gmail.com>)
Responses Re: Yet Another COUNT(*)...WHERE...question
List pgsql-general
"Phoenix Kiula" <phoenix.kiula@gmail.com> writes:

> I'm grappling with a lot of reporting code for our app that relies on
> queries such as:
>
>      SELECT COUNT(*) FROM TABLE WHERE ....(conditions)...
>...
> The number of such possibilities for multiple WHERE conditions is
> infinite...

Depends on the "conditions" bit. You can't solve all of the infinite
possibilities -- well you can, just run the query above -- but if you want to
do better it's all about understanding your data.
--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

pgsql-general by date:

Previous
From: "Phoenix Kiula"
Date:
Subject: Yet Another COUNT(*)...WHERE...question
Next
From: "Phoenix Kiula"
Date:
Subject: Re: Yet Another COUNT(*)...WHERE...question