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
Re: getting the ranks of items Re: getting the ranks of items |
Список | 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 по дате отправления: