Re: [GENERAL] GROUP BY problem with 6.5 - Mailing list pgsql-general

From Bruce Momjian
Subject Re: [GENERAL] GROUP BY problem with 6.5
Date
Msg-id 199907050319.XAA22410@candle.pha.pa.us
Whole thread Raw
In response to GROUP BY problem with 6.5  (Tamas Nyitrai <defiant@telnet.hu>)
Responses Re: [GENERAL] GROUP BY problem with 6.5
List pgsql-general
> I have a query which worked OK until now (with all the previous versions
> of PostgreSQL) but now it returns the following error message:
>
> 'Illegal use of aggregates or non-group column in target list'
>
> So what has been changed at GROUP BY in 6.5?
>
>

The target list can contain only aggregates(ie sum), or grouped by
columns.


--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Chris Bitmead
Date:
Subject: Re: [GENERAL] GROUP BY problem with 6.5
Next
From: "Ross J. Reedstrom"
Date:
Subject: Re: [GENERAL] GROUP BY problem with 6.5