Re: Selecting table row with latest date [RESOLVED]

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

On Thu, 19 Aug 2021, David G. Johnston wrote:

> I thought you said (p.person_nbr, c.contact_date) is already unique?

David,

Yes, that's the PK for the contacts table. I'm still unsure what needs to be
explicitly included in a query. Quite often I leave out a column and
postgres tells me it needs to be included in order by or group by.

Rich

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2021-08-19 21:59:34 Re: Selecting table row with latest date [RESOLVED]
Previous Message David G. Johnston 2021-08-19 21:49:38 Re: Selecting table row with latest date [RESOLVED]