Re: Selecting table row with latest date

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Selecting table row with latest date
Date: 2021-08-19 17:20:30
Message-ID: alpine.LNX.2.20.2108191017320.15165@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 19 Aug 2021, Rob Sargent wrote:

> sorry, wasn’t clear: person_nbr, next_contact
> On the premise that there can only be one next date.

Rob,

I wasn't sufficiently clear. The contacts table has a row for each
(person_nbr, contact_date). For each row there's also either a next_contact
date or that column is null (e.g., pandemic-related no longer at that
company).

Regards,

Rich

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2021-08-19 17:25:18 Re: Selecting table row with latest date
Previous Message Rich Shepard 2021-08-19 17:17:08 Re: Selecting table row with latest date