Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by hub.org (8.10.1/8.11.0) with ESMTP id e9NJ4xN66618 for ; Mon, 23 Oct 2000 15:04:59 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [63.195.55.98] (HELO agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 3.3) with ESMTP id 1111881 for pgsql-sql@postgresql.org; Mon, 23 Oct 2000 12:04:58 -0700 Message-ID: <39F48BD2.42721F7C@agliodbs.com> Date: Mon, 23 Oct 2000 12:04:50 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions X-Mailer: Mozilla 4.73 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: sqllist Subject: Re: SQL Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/194 X-Sequence-Number: 1856 (Aplolgies to Mr. McCoy, to whom I mailed this awnser in error) Mr. Bajerski, > > I've got answer from Postgres > > "Illegal attributes or non-group column" > > > > Is it error in query or in parser ? It's your query. In a GROUP BY query, all named columns must either contain and aggregate function (e.g. SUM) or be named in the GROUP BY clause. O'Reilly has just come out with a SQL in a Nutshell book. I'd suggest picking one up. -Josh Berkus -- ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 436-9166 for law firms, small businesses fax 436-0137 and non-profit organizations. pager 338-4078 San Francisco