select max from subquery

From: searchelite <searchelite(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: select max from subquery
Date: 2009-02-14 11:05:29
Message-ID: 22011562.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Dear All

i gave this kind of query

select max(foo) from (select some statement) as foo

but it gave me this error
ERROR: function max(record) does not exist

any help how i can select max value from suqbuery in main query

thanks
--
View this message in context: http://www.nabble.com/select-max-from-subquery-tp22011562p22011562.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2009-02-14 11:09:12 Re: select max from subquery
Previous Message benoît carpentier 2009-02-14 10:29:39 Benetl, a free ETL tool for files using postgreSQL, is out in version 2.5 !