Re: One source of constant annoyance identified - Mailing list pgsql-general

From Manfred Koizar
Subject Re: One source of constant annoyance identified
Date
Msg-id m5s7iu8o63q84jrd5pm3r6qsaddnca12am@4ax.com
Whole thread Raw
In response to Re: One source of constant annoyance identified  (Manfred Koizar <mkoi-pg@aon.at>)
List 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 by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: EVAL and SET equivalents in PostgreSQL
Next
From: Manfred Koizar
Date:
Subject: Re: Query Analyzing