Re: Top N within groups?

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: Top N within groups?
Дата
Msg-id 20080712150722.GA3535@depesz.com
обсуждение исходный текст
Ответ на Top N within groups?  (Klint Gore <kgore4@une.edu.au>)
Список pgsql-general
On Fri, Jul 11, 2008 at 01:24:28PM +1000, Klint Gore wrote:
> Can someone familiar with the source for DISTINCT ON comment on how hard
> it would be to add another parameter to return more than one row?

you can make top-n per group quite easily using the technique described
here:
http://www.depesz.com/index.php/2007/08/17/rownum-anyone-cumulative-sum-in-one-query/

best regards,

depesz


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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Default fill factor for tables?
Следующее
От: "Wm. Stewart"
Дата:
Сообщение: Wiki: FreeOpenSourceSoftware.org