Re: select a ranking

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: select a ranking
Дата
Msg-id 20020719104131.B10333@svana.org
обсуждение исходный текст
Ответ на select a ranking  (Janning Vygen <vygen@gmx.de>)
Ответы Re: select a ranking  (Janning Vygen <vygen@gmx.de>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bad HTML in Mail List Archives
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: 7.3 support for IN