Re: a question on SQL - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: a question on SQL
Date
Msg-id 20061212203115.GC10037@svana.org
Whole thread Raw
In response to Re: a question on SQL  ("Tomi N/A" <hefest@gmail.com>)
Responses Re: a question on SQL  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-general
On Tue, Dec 12, 2006 at 06:29:07PM +0000, Tomi N/A wrote:
> Ragnar, Marc, thanks so much for the help: DISTINCT ON was *exactly*
> what I needed.
> It's not a part of any SQL standard I know of, but does the job
> _wonderfully_.

It's the single most useful non-standard SQL feature postgresql has. It
is thus simultaneously bad (from a portatbility aspect) and brilliant
(because it's a million times easier and faster than the alternatives).

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: PostgreSQL 8.2 : IPO link warning with ICC 9.1.045
Next
From: Bruce Momjian
Date:
Subject: Re: Online index builds