Re: select max from subquery

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: select max from subquery
Дата
Msg-id 4996A658.4030508@iol.ie
обсуждение исходный текст
Ответ на select max from subquery  (searchelite <searchelite@gmail.com>)
Список pgsql-general
On 14/02/2009 11:05, searchelite wrote:

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

Can you post the full query? It's very hard to tell from this.

Also, I think you may need to give the subquery an alias, thus:

  select max(foo) from ( .... ) s as foo

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

В списке pgsql-general по дате отправления:

Предыдущее
От: searchelite
Дата:
Сообщение: select max from subquery
Следующее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: select max from subquery