getting the ranks of items - Mailing list pgsql-general

From merlyn@stonehenge.com (Randal L. Schwartz)
Subject getting the ranks of items
Date
Msg-id 86r7gnu92p.fsf@blue.stonehenge.com
Whole thread Raw
Responses Re: getting the ranks of items
Re: getting the ranks of items
Re: getting the ranks of items
List pgsql-general
I'm probably asking a FAQ, but a few google searches didn't seem
to point me in the right place.

Is there a simple way with PostgreSQL to assign relative ranks to the
result of a query ORDER BY?  That is, I want to either have a view
that cheaply assigns the ranks, or be able to update a column with the
current ranks (yes, I know this latter version is more prone to
error).

I'm certain there's probably something I can do to laminate an array
value to a query result.  Am I confused?  (Yes!)

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

pgsql-general by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: Deep integration of PostgreSQL with Apache
Next
From: Matthew Terenzio
Date:
Subject: Re: getting the ranks of items