Re: GROUPING

From: Esteban Gutierrez Abarzua <esgutier(at)sauce(dot)chillan(dot)ubiobio(dot)cl>
To: Timothy J Hitchens <tim(at)hitcho(dot)com(dot)au>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: GROUPING
Date: 2001-10-20 18:05:44
Message-ID: Pine.LNX.4.21.0110201456100.30152-100000@sauce.chillan.ubiobio.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sat, 13 Oct 2001, Timothy J Hitchens wrote:

> 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;
>
You should write:

SELECT name_1 FROM telemetry where beat > 12 GROUP BY
name_1

because, you must indicate on "SELECT name_1" the attribute name for
GROUP it .

did you understand?

bye

Esteban Gutierrez.
egutierr(at)alumnos(dot)ubiobio(dot)cl

>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

In response to

  • GROUPING at 2001-10-13 01:15:03 from Timothy J Hitchens

Browse pgsql-sql by date

  From Date Subject
Next Message Aasmund Midttun Godal 2001-10-20 23:57:12 CREATE RULE ON UPDATE/DELETE
Previous Message Dinesh Parikh 2001-10-20 13:35:26 Query On Case structure