From: Joerg Fischer <fischer@zkm.de>
To: pgsql-sql@postgresql.org
Subject: No DIVIDE Operator
Date: Mon, 03 May 1999 15:25:48 +0200
Message-ID: <372DA3DC.8EEAF089@zkm.de> (raw)
Hi!
Consider the following szenario:
Two Tables:
create table Person (
name text,
prename text,
street text,
town text
);
create table Officer (
name text,
prename text,
bureau text
);
So, every Officer is a Person. Now, I would like to get all persons
except for Officers.
If there would be a divide operator, I could write
select name, prename from Person divide select name, prename from
Officer;
without it, however, things get really complicated:
select name, prename from Person where prename not in ( select prename
from Officer where Officer.name = Person.name );
This is an easy example. However, I have to deal with about 10 tables in
a corresponding way.
Any better idea? Will there be a divide operator in PGSQL soon?
Thanks!
Regards
Joerg Fischer
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: fischer@zkm.de
Subject: Re: No DIVIDE Operator
In-Reply-To: <372DA3DC.8EEAF089@zkm.de>
References: <372DA3DC.8EEAF089@zkm.de>
* 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