From: | searchelite <searchelite(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: select max from subquery |
Date: | 2009-02-15 11:23:15 |
Message-ID: | 22021619.post@talk.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Oleg Bartunov wrote:
>
> 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: oleg(at)sai(dot)msu(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
>
thanks oleg for your reply..that's what i need ;)
--
View this message in context: http://www.nabble.com/select-max-from-subquery-tp22011562p22021619.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.
From | Date | Subject | |
---|---|---|---|
Next Message | Bjørn T Johansen | 2009-02-15 12:58:56 | How do I set the schema search path in a datasource config for a connection pool? |
Previous Message | Gerhard Heift | 2009-02-15 10:41:58 | Re: Array in nested query |