Re: SQL challenge--top 10 for each key value?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Rod Taylor <pg(at)rbt(dot)ca>, Greg Stark <gsstark(at)mit(dot)edu>
Cc: Jeff Boes <jboes(at)nexcerpt(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: SQL challenge--top 10 for each key value?
Date: 2004-04-09 16:06:39
Message-ID: 200404090906.39541.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Rod,

> Something along the lines of the below would accomplish what you want
> according to spec. ROW_NUMBER() is a spec defined function. (6.10 of
> SQL200N)

Great leaping little gods! They added something called "row number" to the
spec?

Boy howdy, folks were right ... the ANSI committee really has completly blown
off the relational model completely. First there was the addition of
network-database functions so that IBM could make DB2 look more like a real
database, now this ....

When a standards committee becomes hostage to a handful of vendors, kiss real
standards goodbye.

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2004-04-09 16:07:56 Re: Utility of recursive queries?
Previous Message James Robinson 2004-04-09 14:33:57 Utility of recursive queries?