From: A_Schnabel@t-online.de
To: pgsql-sql@postgresql.org
Subject: Re: How can we match a condition among 2 diff. tables?
Date: Fri, 13 Jul 2001 18:41:29 +0200
Message-ID: <003001c10bba$ab3849e0$0201a8c0@aschnabel.homeip.net> (raw)
References: <200107130611.LAA24039@Larry.bks>
Hi,
if you translate your (english) idea striktly to SQL, you'll make it ;-)
> Now, i need to get the details of all employees who did
> receive NONE of the salesorders. ie.. i wish to select the
> records of table 'employee' whose 'emp_id' are not
> there in table 'salesorder'.
SELECT * FROM employee
WHERE emp_id NOT IN (
SELECT emp_id FROM salesorder
);
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: A_Schnabel@t-online.de
Subject: Re: How can we match a condition among 2 diff. tables?
In-Reply-To: <003001c10bba$ab3849e0$0201a8c0@aschnabel.homeip.net>
* 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