yOn Sat, 14 Feb 2009, searchelite wrote:


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


like this:

select max(foo.qq) from (select 1 as qq) as foo;
                                  ^^ ^^

thanks


        Regards,
                Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: o...@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to