pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Timothy J Hitchens <tim@hitcho.com.au>
To: pgsql-sql@postgresql.org
Subject: GROUPING
Date: Sat, 13 Oct 2001 11:15:03 +1000
Message-ID: <001101c15384$7d0cbda0$0a00a8c0@father> (raw)

It's been a while since I used postgresql but today I have converted one
of my web apps but with one small problem.  I goto do a group as
designed and executed in mysql and I get told that this and this must be
part of the aggreate etc I am puzzled and wonder if someone could bring
me up to stratch with grouping in postgresql this is my current sql:

SELECT * FROM telemetry WHERE beat > 12 GROUP BY buid; 

Result:

Attribute telemetry.rpvuid must be GROUPed or used in an aggregate
function


Oh then if I include rpvuid I get you must include this field and on it
goes.

Thanks...



Timothy J Hitchens
tim@hitcho.com.au




view thread (5+ messages)  latest in thread

Message-ID: <001101c15384$7d0cbda0$0a00a8c0@father>
Permalink:  ../001101c15384$7d0cbda0$0a00a8c0@father/
Also on:    postgresql.org/message-id/001101c15384$7d0cbda0$0a00a8c0@father

 · 

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: tim@hitcho.com.au
  Subject: Re: GROUPING
  In-Reply-To: <001101c15384$7d0cbda0$0a00a8c0@father>

* 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