Re: Selecting table row with latest date [RESOLVED] - Mailing list pgsql-general

From Rich Shepard
Subject Re: Selecting table row with latest date [RESOLVED]
Date
Msg-id alpine.LNX.2.20.2108191503280.15165@salmo.appl-ecosys.com
Whole thread Raw
In response to Re: Selecting table row with latest date [RESOLVED]  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Selecting table row with latest date [RESOLVED]  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
On Thu, 19 Aug 2021, David G. Johnston wrote:

> Well, in this case I suspect you had made a different mistake which caused
> the error message (probably the max(c.next_contact)) but instead of
> solving the original problem (removing the max(...)) you decided that two
> wrongs (adding or extending a group by) would hopefully make a right
> (which it did, technically). But while the query works it is definitely
> not conceptually correct.

David,

I'm not at all surprised as I use postgres infrenquently. Once I have
queries producing results I need for my business tracking or client data I
just use them. I'm neither a professional DBA nor database developer and use
a variety of technical applications dependent on project needs.

And I'm quite used to being chastised by those who work primarily with a
single application all day every day and I accept that I'm not an expert.

Regards,

Rich



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Selecting table row with latest date [RESOLVED]
Next
From: Adrian Klaver
Date:
Subject: Re: Selecting table row with latest date [RESOLVED]