Re: SELECT ... WHERE ... NOT IN (SELECT ...); - Mailing list pgsql-sql

From OU
Subject Re: SELECT ... WHERE ... NOT IN (SELECT ...);
Date
Msg-id ak8k3g$uvp$1@news.hub.org
Whole thread Raw
In response to Re: SELECT ... WHERE ... NOT IN (SELECT ...);  (Yon Den Baguse Ngarso <yon@dugem.com>)
List pgsql-sql
I use a 7.3devel recently build (on a FreeBSD 4.3 box) from CVS sources.
I follow all your steps, and psql results :

test_db=> \! cat problem.sql
--create new temp tbl1
SELECT losteventid AS eventid INTO tbl1 FROM outages;
--create new temp tbl2
SELECT regainedeventid AS eventid INTO tbl2 FROM outages;

SELECT eventid FROM tbl1 WHERE eventid NOT IN (SELECT eventid FROM tbl2);

test_db=> \i problem.sql
SELECT
SELECTeventid
--------- 119064 119064  60116  16082  16082  16303  16082  92628  92628  60083
(10 rows)


"Yon Den Baguse Ngarso" <yon@dugem.com> a �crit dans le message de news:
20020823082835.959193953@sitemail.everyone.net...
> Oops correction.
>
... cut
>
> myhost=# SELECT eventid FROM tbl1 WHERE eventid NOT IN (SELECT eventid
FROM tbl2);
>  eventid
> ---------
> (0 rows)
>
> TIA,
> Yon
>





pgsql-sql by date:

Previous
From: "Ligia Pimentel"
Date:
Subject: Problems with version 7.1, could they be fixed in 7.2?
Next
From: "Emmanuel Guyot"
Date:
Subject: Year of the week : How to ?