Re: select a ranking

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Janning Vygen <vygen(at)gmx(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: select a ranking
Date: 2002-07-19 00:41:31
Message-ID: 20020719104131.B10333@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2002-07-19 00:52:02 Re: 7.3 support for IN
Previous Message Tom Lane 2002-07-18 22:49:30 Re: Bad HTML in Mail List Archives