Re: subquery abnormal behavior

From: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>
To: "Postgres SQL language list" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: subquery abnormal behavior
Date: 2006-12-11 06:57:11
Message-ID: bf54be870612102257l6ac34c94t568b228741c657f6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I just noticed the same behavior in Oracle and SQL Server as well :)

Regards,
---------
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 12/11/06, Shoaib Mir <shoaibmir(at)gmail(dot)com> wrote:
>
> I just noticed an abnormal behavior for the subquery:
>
> create table myt1 (a numeric);
> create table myt2 (b numeric);
>
> select a from myt1 where a in (select a from myt2);
>
> This should be giving an error that column 'a' does not exist in myt2 but
> it runs with any error...
>
> I had been trying it on 8.2!
>
> Can someone please comment?
>
> Thank you,
> -------------
> Shoaib Mir
> EnterpriseDB (www.enterprisedb.com)
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Glaesemann 2006-12-11 07:03:27 Re: subquery abnormal behavior
Previous Message Rajesh Kumar Mallah 2006-12-11 06:51:59 Re: subquery abnormal behavior