Re: Query should have failed, but didn't?

From: Royce Ausburn <royce(at)inomial(dot)com>
To: Andy Colson <andy(at)squeakycode(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query should have failed, but didn't?
Date: 2011-03-02 03:34:39
Message-ID: 96DA9C47-C2A9-46B8-AE46-AFC84958E835@inomial.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 02/03/2011, at 2:16 PM, Andy Colson wrote:

> Its getting id1 from the parent table. (test2) You can use fields from the parent table in subselects.
>
> try this and it'll complain:
>
> select * from test2 where id1 in (select junk from test1) and charge=70;

Oh! Of course! What a fool. Thanks =)

--Royce

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2011-03-02 03:38:42 Re: Query should have failed, but didn't?
Previous Message Andy Colson 2011-03-02 03:16:03 Re: Query should have failed, but didn't?