Re: Selecting table row with latest date

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Selecting table row with latest date
Дата
Msg-id CAKFQuwb0S+PG=BoALF5yD-0GkthB7adq27P0hzH8QQTW-sEOQA@mail.gmail.com
обсуждение исходный текст
Ответ на Selecting table row with latest date  (Rich Shepard <rshepard@appl-ecosys.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:
I have a table of contacts (PK is the person_nbr and contact_date)


Select distinct on (person_nbr) ….. order by person_nbr, contact_date desc;

David J.
 

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

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