Mested select into the from of a a Select structure - Mailing list pgsql-general

From Tourtounis Sotiris
Subject Mested select into the from of a a Select structure
Date
Msg-id Pine.GSO.4.44.0211091840340.24521-100000@syros.csd.uch.gr
Whole thread Raw
Responses Re: Mested select into the from of a a Select structure  (Jakub Ouhrabka <jouh8664@ss1000.ms.mff.cuni.cz>)
List pgsql-general
Performing an SQL query of the below general form to a table T

Table T :

col1 | col2 | col3
------------------
text | text | text

and the query is ...

select *
from (select Y.col1 from ....) Z, T
where  T.col2 = Z

I think this query should work - however it throws me an error to the
where clause, where it says that it doesn't find Z (ERROR:  Attribute 'z'
not found) - can anyone notice any mistake or overlap that i have made - i
would really appreciate any kind of help or advice - thank you a priori
!!!



                                                 SWTHRHS TOYRTOYNHS
                                                (tourtoun@csd.uch.gr)




pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Win2K Questions
Next
From: snpe
Date:
Subject: PostgreSQL JDBC and sub-select