pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: sqllist <pgsql-sql@postgresql.org>
Subject: Re: SQL
Date: Mon, 23 Oct 2000 12:04:50 -0700
Message-ID: <39F48BD2.42721F7C@agliodbs.com> (raw)

(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



view thread (20+ messages)  latest in thread

Message-ID: <39F48BD2.42721F7C@agliodbs.com>
Permalink:  ../39F48BD2.42721F7C@agliodbs.com/
Also on:    postgresql.org/message-id/39F48BD2.42721F7C@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com
  Subject: Re: SQL
  In-Reply-To: <39F48BD2.42721F7C@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox