Re: BUG #4250: subquery in query - Mailing list pgsql-bugs

From Kevin Grittner
Subject Re: BUG #4250: subquery in query
Date
Msg-id 4857EC54.EE98.0025.0@wicourts.gov
Whole thread Raw
In response to BUG #4250: subquery in query  ("Wojciech Tylek" <wat@wat.net.pl>)
List pgsql-bugs
>>> "Wojciech Tylek" <wat@wat.net.pl> wrote:

> Why the query like:
>
> select * from b where a_id in (select a_id from a where b_id in
(10,20));
>
> does not return error?
> The table "a" does not have b_id!

This is a correlated subquery.  A previous list post on the topic:

http://archives.postgresql.org/pgsql-general/2007-06/msg01659.php

I hope this helps.

-Kevin

pgsql-bugs by date:

Previous
From: "Wojciech Tylek"
Date:
Subject: BUG #4250: subquery in query
Next
From: "Andreas Andersson"
Date:
Subject: BUG #4252: SQL stops my graic cards