Search Postgresql Archives

Re: MAX without FROM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux