Re: Query should have failed, but didn't? - Mailing list pgsql-general

From Royce Ausburn
Subject Re: Query should have failed, but didn't?
Date
Msg-id 96DA9C47-C2A9-46B8-AE46-AFC84958E835@inomial.com
Whole thread Raw
In response to Re: Query should have failed, but didn't?  (Andy Colson <andy@squeakycode.net>)
List 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



pgsql-general by date:

Previous
From: "David Johnston"
Date:
Subject: Re: Query should have failed, but didn't?
Next
From: Michał Koba
Date:
Subject: Comparing md5 hash with md5 password hash