From: Francis Solomon <francis@stellison.co.uk>
To: Brian C. Doyle <bcdoyle@mindspring.com>
To: pgsql-sql@postgresql.org
Subject: RE: Query Help
Date: Wed, 27 Dec 2000 16:47:34 -0000
Message-ID: <NEBBIFFPELJMCJAODNPKIEEJCEAA.francis@stellison.co.uk> (raw)
In-Reply-To: <5.0.2.1.2.20001227111807.074dd2d0@pop.mindspring.com>
Hi Brian,
Try something like this:
SELECT firstname FROM table1 WHERE firstname NOT IN (SELECT firstname
FROM table2 WHERE table2.date='yesterday'::date);
Hope this helps.
Francis Solomon
>
> What do I have to do a query where information in table1 is
> not in table2
>
> I am looking for something like
>
> Select table1.firstname where table1.firstname is not in
> table2.firstname
> and table2.date='yesterday'
>
> I tried
> Select table1.firstname where table1.firstname !=
> table2.firstname and
> table2.date='yesterday'
>
> and that did not work just listed everyone....
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: francis@stellison.co.uk, bcdoyle@mindspring.com
Subject: RE: Query Help
In-Reply-To: <NEBBIFFPELJMCJAODNPKIEEJCEAA.francis@stellison.co.uk>
* 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