Re: aggregates and case statements

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: aggregates and case statements
Дата
Msg-id 4921789B.1060301@archonet.com
обсуждение исходный текст
Ответ на aggregates and case statements  (Garry Saddington <garry@schoolteachers.co.uk>)
Список 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 по дате отправления:

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: How to reduce impact of a query.
Следующее
От: charlie derr
Дата:
Сообщение: List Ettiquette (perhaps Off Topic by now) was: Re: Database access over the Internet...