Re: CASE/WHEN behavior with NULLS

Поиск
Список
Период
Сортировка
От Chris Angelico
Тема Re: CASE/WHEN behavior with NULLS
Дата
Msg-id CAPTjJmpTfNYiWfLn=Nba80HwqVdEuWxTEsb-4my=nCgt_AAbfw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: CASE/WHEN behavior with NULLS  (David Johnston <polobo@yahoo.com>)
Список pgsql-general
On Sat, Sep 1, 2012 at 12:07 PM, David Johnston <polobo@yahoo.com> wrote:
> These are not equivalent if some values of foo are not-null and you want the sum of all non-null values while
replacingany nulls with zero.  So the decision depends on what and why you are summing. 

It comes to the same result with SUM though isn't it?

ChrisA


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

Предыдущее
От: David Johnston
Дата:
Сообщение: Re: CASE/WHEN behavior with NULLS
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CASE/WHEN behavior with NULLS