count( only if true)

Поиск
Список
Период
Сортировка
От peter pilsl
Тема count( only if true)
Дата
Msg-id 434D58FA.2080704@goldfisch.at
обсуждение исходный текст
Ответы Re: count( only if true)  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Re: count( only if true)  (Martín Marqués <martin@bugs.unl.edu.ar>)
Список pgsql-general
the count-aggreate counts every expression that does not evaluate to null.

I would like to have a count that counts all values that are true.

Do I really need to make a count( case when expression then 't' else
null) to implement this?

thnx,
peter


--
mag. peter pilsl
goldfisch.at
IT-management
tel +43 699 1 3574035
fae +43 699 4 3574035
pilsl@goldfisch.at

В списке pgsql-general по дате отправления:

Предыдущее
От: Jussi Mikkola
Дата:
Сообщение: Re: [pgsql-advocacy] Oracle buys Innobase
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: count( only if true)