pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joseph Healy <j.healy@ugrad.unimelb.edu.au>
To: pgsql-sql@postgresql.org
Subject: Group By Error Text
Date: Mon, 20 Jan 2003 09:36:41 +1100
Message-ID: <20030119223641.GA1999@joe.hollowcore.com.au> (raw)

Hi

with the following query:

select jobno, count(jobno) from drawing_register;

I get the following error:

ERROR:  Attribute drawing_register.jobno must be GROUPed or used in an
aggregate function

Is this correct? Getting rid of the error is easy:

select jobno, count(jobno) from drawing_register group by jobno;

I believe that jobno is being used in an aggregate function. Should a
change be made to the error text?

Regards


Joe Healy



view thread (2+ messages)  latest in thread

Message-ID: <20030119223641.GA1999@joe.hollowcore.com.au>
Permalink:  ../20030119223641.GA1999@joe.hollowcore.com.au/
Also on:    postgresql.org/message-id/20030119223641.GA1999@joe.hollowcore.com.au

 · 

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: j.healy@ugrad.unimelb.edu.au
  Subject: Re: Group By Error Text
  In-Reply-To: <20030119223641.GA1999@joe.hollowcore.com.au>

* 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