Selecting table row with latest date - Mailing list pgsql-general

From David G. Johnston
Subject Selecting table row with latest date
Date
Msg-id CAKFQuwbWpHGBrMvo4jPQKBxKQm9bSRNZTtr5-Sq8V-PHrymhrQ@mail.gmail.com
Whole thread Raw
In response to Re: Selecting table row with latest date  (Rich Shepard <rshepard@appl-ecosys.com>)
List 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 by date:

Previous
From: Rich Shepard
Date:
Subject: Re: Selecting table row with latest date
Next
From: Rich Shepard
Date:
Subject: Re: Selecting table row with latest date