Re: Subselects open issue Nr. 5

From: Zeugswetter Andreas SARZ <Andreas(dot)Zeugswetter(at)telecom(dot)at>
To: "'pgsql-hackers(at)hub(dot)org'" <pgsql-hackers(at)hub(dot)org>
Subject: Re: Subselects open issue Nr. 5
Date: 1998-02-13 17:00:25
Message-ID: 219F68D65015D011A8E000006F8590C6010A51D8@sdexcsrv1.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> 5. I need in advice: if subquery introduced with NOT IN doesn't return
> any tuples then qualification is failed, yes ?

Informix treats the subselect as NULL if no rows are returned.
Therefore all parent rows that are not null are returned.

select * from taba where a not in (<a select returning no row>); --
is same as
select * from taba where a is not null;

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas G. Lockhart 1998-02-13 17:02:14 Re: [HACKERS] pgsql and threads don't match
Previous Message Thomas G. Lockhart 1998-02-13 16:57:18 Re: [PORTS] v6.3 release ToDo list and supported ports