Re: count(1) return 0?

Поиск
Список
Период
Сортировка
От Klint Gore
Тема Re: count(1) return 0?
Дата
Msg-id 40428E23352.B2CDKG@129.180.47.120
обсуждение исходный текст
Ответ на count(1) return 0?  (Zak McGregor <zak@mighty.co.za>)
Ответы Re: count(1) return 0?  (Zak McGregor <zak@mighty.co.za>)
Список pgsql-general
On Mon, 1 Mar 2004 02:14:56 +0200, Zak McGregor <zak@mighty.co.za> wrote:
> to return a 0 value instead of absolutely nothing if no rows match fixture=4916
> and winner=away? I get absolutely no results at all.
>
> any ideas please?

dont group by winner.  it's not returned in the statement so it's not
needed anyway.  an exact value is specified in the where clause so it's
not going to be different either.

klint.

+---------------------------------------+-----------------+
: Klint Gore                            : "Non rhyming    :
: EMail   : kg@kgb.une.edu.au           :  slang - the    :
: Snail   : A.B.R.I.                    :  possibilities  :
: Mail      University of New England   :  are useless"   :
:           Armidale NSW 2351 Australia :     L.J.J.      :
: Fax     : +61 2 6772 5376             :                 :
+---------------------------------------+-----------------+

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

Предыдущее
От: Stephen Howard
Дата:
Сообщение: referring to computed values from the select list in the where and order clauses
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: count(1) return 0?