Re: Cheers for DISTINCT ON

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Kovacs <maxottovonstirlitz(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Cheers for DISTINCT ON
Date: 2008-01-07 16:22:51
Message-ID: 200801071622.m07GMpQ17669@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Peter Kovacs wrote:
> I just wanted to give my cheers for DISTINCT ON. It is a great
> feature, I've just found a really good use for it. I am just wondering
> why it didn't make it into the standards.
>
> On a slightly unrelated note, I had the opportunity to work with EQUEL
> for a short period of time some 15 years ago before I started getting
> famililar with SQL. I clearly remember the disappointment/surprise I
> felt as I was struggling to translate some of the constructs I used
> with EQUEL into SQL. At that time, I thought that (the by then
> defunct) EQUEL was much more
> expressive/intuitive/flexible/easier-to-use than SQL. I've been
> wondering ever since why the worse so often gets the upper-hand over
> the better. (I am obviously having a hard time "growing-up" :-) )

As a former EQUEL user myself I had the same reaction to SQL. I think
EQUEL and SQL both have strengths, but I think SQL subqueries and the
cleaner handling of group aggregates makes SQL more useful in a variety
of ways.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Chris Browne 2008-01-07 17:51:19 Re: Cheers for DISTINCT ON
Previous Message Andrew Sullivan 2008-01-07 16:18:12 Re: Cheers for DISTINCT ON