Re: oracle's first_value function for postgres?

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: oracle's first_value function for postgres?
Дата
Msg-id 20050913203420.GB3113@svana.org
обсуждение исходный текст
Ответ на oracle's first_value function for postgres?  (Ben <bench@silentmedia.com>)
Ответы Re: oracle's first_value function for postgres?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: oracle's first_value function for postgres?  (Ron Mayer <rm_pg@cheapcomplexdevices.com>)
Список pgsql-general
On Tue, Sep 13, 2005 at 12:15:21PM -0700, Ben wrote:
> Oracle has a very handy function called first_value, which can be used
> to turn a set like this:

Look at DISTINCT ON ()

> Does postgres have something equivalent, or, even better, is there a
> reasonable way to express this in standard SQL?

In standard SQL, not really, which is why it's an extention...
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

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

Предыдущее
От: Federico Kereki
Дата:
Сообщение: Question about PHP and PostgreSQL
Следующее
От: Jerry LeVan
Дата:
Сообщение: Pushing result set to table on different machine?