From: Marc Rohloff <Marc.Rohloff@eskom.co.za>
To: josh@agliodbs.com
To: pgsql-sql@postgresql.org
Subject: Re: Outer Joins
Date: Thu, 02 Nov 2000 09:11:50 +0200
Message-ID: <sa013083.027@eskom.co.za> (raw)
>> select a.col1, b.col2 from a,b
>> where a.col1 = b.col2
>> or a.col1 not in (select b.col2 from b)
>This would work, but it would be *much* slower than a UNION query. "Not
>In" queries are perhaps the slowest you can run; see the earlier thread
>"Query Problem" for a discussion. UNION queries are, in fact, very fast
>... just awkward to code and manipulate.
Why should this be slower since the UNION Query still has an identical not in clause?
This is far easier (for me) to read.
Marc
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: Marc.Rohloff@eskom.co.za, josh@agliodbs.com
Subject: Re: Outer Joins
In-Reply-To: <sa013083.027@eskom.co.za>
* 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