From: Ray Madigan <ray@madigans.org>
To: Pgsql-Sql <pgsql-sql@postgresql.org>
Subject: Re: Except without elimination of non-distinct rows
Date: Mon, 4 Feb 2008 19:23:03 -0800
Message-ID: <IIEPJABILGOCODDLDNJFCEPFCGAA.ray@madigans.org> (raw)
I tried using EXCEPT ALL but it seems to only remove one row when there is
more then one matching row?
Thanks
Ray Madigan
-----Original Message-----
From: pgsql-sql-owner@postgresql.org
[mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Tom Lane
Sent: Monday, February 04, 2008 6:20 PM
To: Ray Madigan
Cc: Pgsql-Sql
Subject: Re: [SQL] Except without elimination of non-distinct rows
"Ray Madigan" <ray@madigans.org> writes:
> Is there any way to use except that won't remove the non-distinct rows
from
> the left side of the query?
EXCEPT ALL might or might not do what you're hoping for. Check the
manual (I think the SELECT reference page is what to look at).
regards, tom lane
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: ray@madigans.org
Subject: Re: Except without elimination of non-distinct rows
In-Reply-To: <IIEPJABILGOCODDLDNJFCEPFCGAA.ray@madigans.org>
* 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