pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: OU <moebius444@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: SELECT ... WHERE ... NOT IN (SELECT ...);
Date: Sat, 24 Aug 2002 21:23:46 +0200
Message-ID: <ak8k3g$uvp$1@news.hub.org> (raw)
References: <20020823082835.959193953@sitemail.everyone.net>


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
SELECT
 eventid
---------
  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
>






view thread (9+ messages)  latest in thread

Message-ID: <ak8k3g$uvp$1@news.hub.org>
Permalink:  ../ak8k3g$uvp$1@news.hub.org/
Also on:    postgresql.org/message-id/ak8k3g$uvp$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: moebius444@hotmail.com
  Subject: Re: SELECT ... WHERE ... NOT IN (SELECT ...);
  In-Reply-To: <ak8k3g$uvp$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox