Re: [HACKERS] Subselects are in CVS... - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: [HACKERS] Subselects are in CVS...
Date
Msg-id 199802131353.OAA21354@gauss.topsystem.de
Whole thread Raw
In response to Subselects are in CVS...  ("Vadim B. Mikheev" <vadim@sable.krasnoyarsk.su>)
List pgsql-hackers
Vadim B. Mikheev writes:
> 5. I need in advice: if subquery introduced with NOT IN doesn't return
>    any tuples then qualification is failed, yes ?

Do you mean something like this:

select * from table1 where x not in (select x from table2)

table1.x: a,b

table2.x is empty

The correct answer IMO is 'a,b' in this case.

Michael

--
Dr. Michael Meskes, Project-Manager    | topsystem Systemhaus GmbH
meskes@topsystem.de                    | Europark A2, Adenauerstr. 20
meskes@debian.org                      | 52146 Wuerselen
Go SF49ers! Go Rhein Fire!             | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux!                  | Fax: (+49) 2405/4670-10

pgsql-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] CREATE FUNCTION broken
Next
From: Maarten Boekhold
Date:
Subject: Re: [HACKERS] postgres initdb on ALPHA/Digital Unix