Subselect Question

Поиск
Список
Период
Сортировка
От Alex P
Тема Subselect Question
Дата
Msg-id 41873FE4.9050800@meerkatsoft.com
обсуждение
Ответы Re: Subselect Question
Re: Subselect Question
Re: Subselect Question
Список pgsql-general
Hi,

when creating a query with a subselect

SELECT name, (SELECT max(pop) FROM cities WHERE cities.state = states.name) AS max_pop
    FROM states;

then it is not possible to sort after max_pop or use max_pop in a function or a CASE.

am I dont anything wrong or is this meant to be the case?

Thanks
Alex







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