From: Domoszlai László <dlacko@finit.hu>
To: SQL PostgreSQL (E-mail) <pgsql-sql@postgresql.org>
Subject: set difference
Date: Tue, 15 Oct 2002 14:52:23 +0200
Message-ID: <D6CD29CE4DF67F47A11FB6CF5EBE15D10ECC55@gedeon.finit.local> (raw)
Hello,
I would like to make symmetrical(set) difference in a query.
But the simpliest way I could find is
select id from a
except
select id from b
union
select id from b
except
select id from a
Is there any better solution for this problem?
Thanks
Laca
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: dlacko@finit.hu
Subject: Re: set difference
In-Reply-To: <D6CD29CE4DF67F47A11FB6CF5EBE15D10ECC55@gedeon.finit.local>
* 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