Re: Subquery to select max(date) value - Mailing list pgsql-general

From Rich Shepard
Subject Re: Subquery to select max(date) value
Date
Msg-id alpine.LNX.2.20.1902121500240.15295@salmo.appl-ecosys.com
Whole thread Raw
In response to Re: Subquery to select max(date) value  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Subquery to select max(date) value  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-general
On Tue, 12 Feb 2019, Adrian Klaver wrote:

> 'infinity' is the max date, so this is what you want?

Adrian,

Nope. When I went to make a cup of coffee I realized that I need the other
date constraints (such as IS NOT NULL), too. I'm re-wording the statement to
put everything in the correct order. Will probably try DISTINCT ON, too, if
that makes it simpler or faster.

Thanks,

Rich


pgsql-general by date:

Previous
From: Ken Tanzer
Date:
Subject: Re: Subquery to select max(date) value
Next
From: Rich Shepard
Date:
Subject: Re: Subquery to select max(date) value