From: Yury Don <yura@vpcit.ru>
To: pgsql-sql@postgresql.org
Subject: Re: Query Help
Date: Wed, 27 Dec 2000 22:01:07 +0500
Message-ID: <1593069435.20001227220107@vpcit.ru> (raw)
In-Reply-To: <5.0.2.1.2.20001227111807.074dd2d0@pop.mindspring.com>
References: <5.0.2.1.2.20001227111807.074dd2d0@pop.mindspring.com>
Hello Brian,
Wednesday, December 27, 2000, 9:20:53 PM, you wrote:
BCD> What do I have to do a query where information in table1 is not in table2
BCD> I am looking for something like
BCD> Select table1.firstname where table1.firstname is not in table2.firstname
BCD> and table2.date='yesterday'
BCD> I tried
BCD> Select table1.firstname where table1.firstname != table2.firstname and
BCD> table2.date='yesterday'
BCD> and that did not work just listed everyone....
If I understand correctly
Select table1.firstname from table1 where not exists
(select table2.firstname from table2 where table1.firstname = table2.firstname and
table2.date='yesterday')
--
Best regards,
Yury mailto:yura@vpcit.ru
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: yura@vpcit.ru
Subject: Re: Query Help
In-Reply-To: <1593069435.20001227220107@vpcit.ru>
* 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