Re: Decision support query inefficiencies ...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Decision support query inefficiencies ...
Дата
Msg-id 11828.1027975183@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Decision support query inefficiencies ...  (Gunther Schadow <gunther@aurora.regenstrief.org>)
Список pgsql-sql
Gunther Schadow <gunther@aurora.regenstrief.org> writes:
> A very frequent decision support query we have to make is to get the
> last act of a certain type that occurred before a certain cut-off
> date.

This seems pretty close to the type of problem DISTINCT ON is intended
to solve.  Look at the "weather report" example in the SELECT reference
page.
        regards, tom lane


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

Предыдущее
От: Peter Atkins
Дата:
Сообщение: Re: Returning PK of first insert for second insert use.
Следующее
От: "Patrick Hatcher"
Дата:
Сообщение: Extremely slow query