Re: [SQL] GROUP BY: v6.1 vs. v6.5.2 - Mailing list pgsql-sql

From Ray Plante
Subject Re: [SQL] GROUP BY: v6.1 vs. v6.5.2
Date
Msg-id Pine.SGI.4.05.10002011006060.154408-100000@poplar.astro.uiuc.edu
Whole thread Raw
In response to Re: [SQL] GROUP BY: v6.1 vs. v6.5.2  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Hi Tom,

> What you can do at the moment is
> 
>     select distinct on x  x, y from table;
> 
> This is nonstandard, klugy, and just as unpredictable as the old GROUP
> BY behavior, but you only need an ordering operator on x.

Excellent.  This is just the short-term solution I can use until I work
out a permanent one.  Thanks!

Ray



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] GROUP BY: v6.1 vs. v6.5.2
Next
From: "a kj"
Date:
Subject: Hello sir.