Re: SQL - Mailing list pgsql-sql

From Josh Berkus
Subject Re: SQL
Date
Msg-id 39F48BD2.42721F7C@agliodbs.com
Whole thread Raw
In response to SQL  (DATAPUC-Frederico Papatella Guerino <papatella@pucminas.br>)
List pgsql-sql
(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
informationtechnology      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


pgsql-sql by date:

Previous
From:
Date:
Subject: Re:
Next
From: "pgsql-sql"
Date:
Subject: help on creating table