Re: Stuck with a query... - Mailing list pgsql-general

From Geoff Caplan
Subject Re: Stuck with a query...
Date
Msg-id 042244774.20050308185343@variosoft.com
Whole thread Raw
In response to Re: Stuck with a query...  (Greg Stark <gsstark@mit.edu>)
List pgsql-general
Greg,

GS> There's no efficient way to write this in standard SQL.
GS> However Postgres has an extension DISTINCT ON that would
GS> do it:

Works as advertised - many thanks! I'd missed the DISTINCT
ON extension...

This really is a great list - you've saved me a couple of
hours of agony, I suspect.

------------------
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154


pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: Stuck with a query...
Next
From: ntinos@aueb.gr
Date:
Subject: SRF, JDBC and result info