Re: subquery abnormal behavior

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

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!
Even in 8.1.5 it does not complain. (its not 8.2 specific at least)

Regds
mallah.
>
> 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 Shoaib Mir 2006-12-11 06:57:11 Re: subquery abnormal behavior
Previous Message Shoaib Mir 2006-12-11 06:48:03 subquery abnormal behavior