Re: [HACKERS] Subselects and NOTs

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: [HACKERS] Subselects and NOTs
Date: 1998-02-18 17:32:40
Message-ID: 219F68D65015D011A8E000006F8590C6010A51E1@sdexcsrv1.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

This is what I did:
create table a (a int, a1 char(8));
create table b (b int);
insert into a values (1, 'one');
insert into a values (NULL, 'null');

and this is what I got from Informix:
> select * from a where a not in (select * from b);
a a1
1 one
null
2 row(s) retrieved.
> select * from a where not (a in (select * from b));
a a1
1 one
null
2 row(s) retrieved.
> select * from a where not a in (select * from b);
a a1
1 one
null
2 row(s) retrieved.
> select * from a where a<>(select * from b);
a a1
No rows found.
> select * from a where a=(select * from b);
a a1
No rows found.

Andreas

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1998-02-18 17:48:10 Re: [HACKERS] Open 6.3 issues (fwd)
Previous Message Mattias Kregert 1998-02-18 17:20:51 Re: AW: [HACKERS] Re: Subselects open issue Nr. NEW