Re: select a ranking - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: select a ranking
Date
Msg-id 20020719104131.B10333@svana.org
Whole thread Raw
In response to select a ranking  (Janning Vygen <vygen@gmx.de>)
Responses Re: select a ranking  (Janning Vygen <vygen@gmx.de>)
List pgsql-general
On Thu, Jul 18, 2002 at 03:29:10PM +0200, Janning Vygen wrote:
> Hi,
>
> i do some ordering on a table and need a ranking by points from a
> table with names and points (see sample code at the end of the mail)

[snip]

> so heres is my question:
> is there an easier way to create a ranking?

Yep, in the presentation tool. Pseudo-code is:

For each row in result
  print rownumber
  print contents of row

Why do you want to do this in SQL when it's clearly not the right place for
it?

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> There are 10 kinds of people in the world, those that can do binary
> arithmetic and those that can't.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bad HTML in Mail List Archives
Next
From: Martijn van Oosterhout
Date:
Subject: Re: 7.3 support for IN