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

From Adrian Klaver
Subject Re: Subquery to select max(date) value
Date
Msg-id 8b99480a-7711-694e-a1c5-ae65bb0c0364@aklaver.com
Whole thread Raw
In response to Re: Subquery to select max(date) value  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: Subquery to select max(date) value  (Rich Shepard <rshepard@appl-ecosys.com>)
List pgsql-general
On 2/12/19 2:48 PM, Rich Shepard wrote:
> On Tue, 12 Feb 2019, Rich Shepard wrote:
> 
>>      A.next_contact = (select (max(A.next_contact)) from Activities as A)
> 
> Errata:
> 
> The parentheses around the max aggregate are not necessary.
> 
> A.next_contact now displays at the end of each returned row as 'infinity'.

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

> 
> Rich
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

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