Re: How to handle a group query

Поиск
Список
Период
Сортировка
От Nigel Metheringham
Тема Re: How to handle a group query
Дата
Msg-id 1099654369.2642.5.camel@angua.localnet
обсуждение исходный текст
Ответ на Re: How to handle a group query  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
On Thu, 2004-11-04 at 14:15 -0500, Tom Lane wrote:
> If you don't mind using a Postgres-specific construct, SELECT DISTINCT ON
> works nicely for this.  See the "weather reports" example in the SELECT
> reference page.

It took a few minutes for what you were suggesting to click, but now I
am completely blown away by that - its *so* much simpler.

Cheers
    Nigel.
--
[ Nigel Metheringham           Nigel.Metheringham@InTechnology.co.uk ]
[ - Comments in this message are my own and not ITO opinion/policy - ]



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

Предыдущее
От: Terry Lee Tucker
Дата:
Сообщение: Re: Question on locking
Следующее
От: Kjetil Haaland
Дата:
Сообщение: varchar in c extension function