Re: getting the ranks of items

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: getting the ranks of items
Дата
Msg-id 42782B7F.4020504@commandprompt.com
обсуждение исходный текст
Ответ на Re: getting the ranks of items  (merlyn@stonehenge.com (Randal L. Schwartz))
Ответы Re: getting the ranks of items  (Mike Nolan <nolan@gw.tssi.com>)
Список pgsql-general
>
> If I order a query by ascending age, the youngest person gets
> rank 1, the second youngest gets rank 2, the third youngest gets rank 3,
> and if the fourth and fifth tie, they both get 4, and the next one gets 6.
>
> You know, rank? :)

You could use a plPerl function.

Sincerely,

Joshua D. Drake





В списке pgsql-general по дате отправления:

Предыдущее
От: "Sean Davis"
Дата:
Сообщение: Re: getting the ranks of items
Следующее
От: Mike Nolan
Дата:
Сообщение: Re: getting the ranks of items