Re: SQL

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: sqllist <pgsql-sql(at)postgresql(dot)org>
Subject: Re: SQL
Date: 2000-10-23 19:04:50
Message-ID: 39F48BD2.42721F7C@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 information technology josh(at)agliodbs(dot)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

Browse pgsql-sql by date

  From Date Subject
Next Message Vadim Mikheev 2000-10-23 21:29:02 Re: foreign key introduces unnecessary locking ?
Previous Message Vadim Mikheev 2000-10-23 18:22:28 Re: foreign key introduces unnecessary locking ?