Re: BUG #4250: subquery in query

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-bugs(at)postgresql(dot)org>,"Wojciech Tylek" <wat(at)wat(dot)net(dot)pl>
Subject: Re: BUG #4250: subquery in query
Date: 2008-06-17 21:55:54
Message-ID: 4857EC54.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>>> "Wojciech Tylek" <wat(at)wat(dot)net(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Andreas Andersson 2008-06-18 01:07:37 BUG #4252: SQL stops my graic cards
Previous Message Wojciech Tylek 2008-06-17 20:37:24 BUG #4250: subquery in query