Subselect Question - Mailing list pgsql-general

From Alex P
Subject Subselect Question
Date
Msg-id 41873FE4.9050800@meerkatsoft.com
Whole thread Raw
Responses Re: Subselect Question
Re: Subselect Question
Re: Subselect Question
List 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 by date:

Previous
From: Alex P
Date:
Subject: SQL Agreate Functions
Next
From: Alex P
Date:
Subject: Postgres Versions / Releases