From: Rod Taylor <pg@rbt.ca>
To: Marcel Loose <loose@astron.nl>
Cc: pgsql-sql@postgresql.org
Subject: Re: Newbie Query question
Date: Fri, 26 Mar 2004 09:49:12 -0500
Message-ID: <1080312551.338.25.camel@jester> (raw)
In-Reply-To: <c3p1cv$2i55$1@news.wplus.net>
References: <c3p1cv$2i55$1@news.wplus.net>
> However, this query does not give me the result I expected. It appears that
> the database engine first calculates the cartesian product of the tables A
> and B and then evaluates the query. Hence, I get multiple matches for
Yup.. WHERE filters the results of the join.
> Is there any way to do this, other than using UNION??
This is what you want. I think you could come out with what you want in
other ways, but this is by far the most appropriate.
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: pg@rbt.ca, loose@astron.nl
Subject: Re: Newbie Query question
In-Reply-To: <1080312551.338.25.camel@jester>
* 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