Re: MAX without FROM - Mailing list pgsql-general

From Scott Marlowe
Subject Re: MAX without FROM
Date
Msg-id 1137092970.3959.18.camel@state.g2switchworks.com
Whole thread Raw
In response to MAX without FROM  (Angshu Kar <angshu96@gmail.com>)
Responses Re: MAX without FROM
List pgsql-general
On Thu, 2006-01-12 at 12:58, Angshu Kar wrote:
> Hi,
>
> Can I use Select max(a field returned from another query)?
> say, another query returns say 10,1,2,3,6,7

Does this form help you:

select max(a) from (select 1 as a union select 2 union select 3) as b;

pgsql-general by date:

Previous
From: Jeff Trout
Date:
Subject: Re: Plans for 8.2?
Next
From: Angshu Kar
Date:
Subject: Re: MAX without FROM