Re: [HACKERS] SUM() and GROUP BY

Поиск
Список
Период
Сортировка
От D'Arcy" "J.M." Cain
Тема Re: [HACKERS] SUM() and GROUP BY
Дата
Msg-id m100kAR-0000bpC@druid.net
обсуждение исходный текст
Ответ на Re: [HACKERS] SUM() and GROUP BY  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
Список pgsql-hackers
Thus spake Thomas G. Lockhart
> > So, again I agree with D'Arcy.
> 
> I'm missing something. Is there another issue for GROUP BY for which we
> don't have a consensus? An aggregate on an entire column can return
> NULL, and aggregates on columns with GROUP BY columns of NULL should
> not.

Well, I still think that an aggregate on a whole column when no rows
are selected (None exist or WHERE clause deselects everything) should
return 0 rows, not NULL but the above would be better than what happens
now.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.


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

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] postgres and year 2000
Следующее
От: jwieck@debis.com (Jan Wieck)
Дата:
Сообщение: Re: [HACKERS] CONSTRAINTS...