Re: Extract only maximum date from column
Rich Shepard <rshepard@appl-ecosys.com>
From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org
Date: 2025-12-04T20:13:49Z
Lists: pgsql-general
On Thu, 4 Dec 2025, Bryan Sayer wrote: > I believe in general you need > > having c.next_contact = max(c.next_contact) > > (at least in ANSI SQL) Use having for after the join has occurred Bryan, Postgresql didn't like that regardless of where I inserted the `having' stanza. Thanks, Rich