Re: getting the ranks of items - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: getting the ranks of items
Date
Msg-id 42782B7F.4020504@commandprompt.com
Whole thread Raw
In response to Re: getting the ranks of items  (merlyn@stonehenge.com (Randal L. Schwartz))
Responses Re: getting the ranks of items
List 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 by date:

Previous
From: "Sean Davis"
Date:
Subject: Re: getting the ranks of items
Next
From: Mike Nolan
Date:
Subject: Re: getting the ranks of items