Re: aggregates and case statements - Mailing list pgsql-general

From Richard Huxton
Subject Re: aggregates and case statements
Date
Msg-id 4921789B.1060301@archonet.com
Whole thread Raw
In response to aggregates and case statements  (Garry Saddington <garry@schoolteachers.co.uk>)
List pgsql-general
garry@schoolteachers.co.uk wrote:
> Quoting Richard Huxton <dev@archonet.com>:
>> But I'm guessing that's not what you mean. Can you show what output
>> you'd like to have?
>
> effort sum
>  1     245
>  2     463
> etc.
>
> Each value for effort has a different statistical meaning as in the case
> statement.

Sorry - still don't understand. The query you originally gave should
have provided the sum for each case (which you seem to be calling
"effort" here. I don't see where the problem is.

--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: How to reduce impact of a query.
Next
From: charlie derr
Date:
Subject: List Ettiquette (perhaps Off Topic by now) was: Re: Database access over the Internet...