Subselect Question

From: Alex P <alex(at)meerkatsoft(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Subselect Question
Date: 2004-11-02 08:05:56
Message-ID: 41873FE4.9050800@meerkatsoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex P 2004-11-02 08:09:02 Postgres Versions / Releases
Previous Message Alex P 2004-11-02 07:51:27 SQL Agreate Functions