Re: Subquery to select max(date) value

Поиск
Список
Период
Сортировка
От Matt Zagrabelny
Тема Re: Subquery to select max(date) value
Дата
Msg-id CAOLfK3W7w_O8A4zCeZQpRJPSHLzzYx00xRQ5cJ95TORLfKc7pQ@mail.gmail.com
обсуждение исходный текст
Ответ на Subquery to select max(date) value  (Rich Shepard <rshepard@appl-ecosys.com>)
Список pgsql-general
Hey Rich,

On Tue, Feb 12, 2019 at 4:24 PM Rich Shepard <rshepard@appl-ecosys.com> wrote:
The query is to return the latest next_contact date for each person. Using
the max() aggregate function and modeling the example of lo_temp on page 13
of the rel. 10 manual I wrote this statement:

I use DISTINCT ON and ORDER BY to get the single latest value from a table with multiple date entries:


HTH,

-m

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

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Re: Subquery to select max(date) value
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Subquery to select max(date) value