Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9DM59r83764 for ; Sat, 13 Oct 2001 18:05:09 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f9DLpQ932630 for pgsql-sql@postgresql.org; Sat, 13 Oct 2001 17:51:26 -0400 (EDT) (envelope-from news) From: missive@frontiernet.net (Lee Harr) X-Newsgroups: comp.databases.postgresql.sql Subject: Re: GROUPING Date: Sat, 13 Oct 2001 21:51:22 +0000 (UTC) Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 17 Message-ID: <9qad0q$vl0$1@news.tht.net> References: <001101c15384$7d0cbda0$0a00a8c0@father> Reply-To: missive@hotmail.com X-Complaints-To: scrappy@hub.org User-Agent: slrn/0.9.7.0 (FreeBSD) To: pgsql-sql@postgresql.org X-Archive-Number: 200110/182 X-Sequence-Number: 5137 On Sat, 13 Oct 2001 03:32:57 +0000 (UTC), 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; > I seem to recall reading something recently showing that mysql does something completely different with GROUP from what postgres does. Stephan posted a nice description of how GROUP works here. It might help if we knew what you want the result of your query to be.