getting the ranks of items

Поиск
Список
Период
Сортировка
От merlyn@stonehenge.com (Randal L. Schwartz)
Тема getting the ranks of items
Дата
Msg-id 86r7gnu92p.fsf@blue.stonehenge.com
обсуждение исходный текст
Ответы Re: getting the ranks of items  (Matthew Terenzio <matt@jobsforge.com>)
Re: getting the ranks of items  (Lyubomir Petrov <lpetrov@sysmaster.com>)
Re: getting the ranks of items  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список 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 по дате отправления:

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Deep integration of PostgreSQL with Apache
Следующее
От: Matthew Terenzio
Дата:
Сообщение: Re: getting the ranks of items