Re: One source of constant annoyance identified

Поиск
Список
Период
Сортировка
От Manfred Koizar
Тема Re: One source of constant annoyance identified
Дата
Msg-id m5s7iu8o63q84jrd5pm3r6qsaddnca12am@4ax.com
обсуждение исходный текст
Ответ на Re: One source of constant annoyance identified  (Manfred Koizar <mkoi-pg@aon.at>)
Список pgsql-general
On Wed, 03 Jul 2002 21:09:24 +0200, I wrote:
>select  MESSAGE.BOARD_ID
>      , [...]
>      , count(TH.THREAD_ID) as TFUID

Oops!  COUNT won't work unless you add GRAOUP BY <all other fields> at
the end of the query.  I had
    CASE WHEN th.thread_id IS NULL THEN 0 ELSE 1 END
here and thoughtlessly replaced it by COUNT(...) for brevity.  How
foolish!

Servus
 Manfred



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: EVAL and SET equivalents in PostgreSQL
Следующее
От: Manfred Koizar
Дата:
Сообщение: Re: Query Analyzing