Selecting table row with latest date

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Selecting table row with latest date
Дата
Msg-id CAKFQuwbWpHGBrMvo4jPQKBxKQm9bSRNZTtr5-Sq8V-PHrymhrQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Selecting table row with latest date  (Rich Shepard <rshepard@appl-ecosys.com>)
Список pgsql-general
On Thursday, August 19, 2021, Rich Shepard <rshepard@appl-ecosys.com> wrote:
On Thu, 19 Aug 2021, Rich Shepard wrote:

Please point me to the proper place in the docs where I can learn how to do
this.

If I use DISTINCT ON would this produce the most recent date for each
person_nbr?

Yes, I mis-read your request and thought you wanted the most recent per contact.  Frankly, the single most recent is too simple that my mind didn’t register that possibility.

David J.

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

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Re: Selecting table row with latest date
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Selecting table row with latest date