Re: Group by and limit

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Group by and limit
Дата
Msg-id m2lj5aye27.fsf@2ndQuadrant.fr
обсуждение исходный текст
Ответ на Group by and limit  (Reid Thompson <reid.thompson@ateb.com>)
Список pgsql-general
Reid Thompson <reid.thompson@ateb.com> writes:
> I only want the first 500 for each x.
> Any tips or tricks someone might know would be appreciated.
> I’m using postgres 8.3.7.

  http://troels.arvin.dk/db/rdbms/#select-top-n

Consider using a more recent version of PostgreSQL, equipped with window
functions!

Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support

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

Предыдущее
От: Jasen Betts
Дата:
Сообщение: timestamps in Australia
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: Why Select Count(*) from table - took over 20 minutes?