pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedExcept without elimination of non-distinct rows
3+ messages / 2 participants
[nested] [flat]
* Except without elimination of non-distinct rows
@ 2008-02-05 02:16 Ray Madigan <ray@madigans.org>
0 siblings, 1 reply; 3+ messages in thread
From: Ray Madigan @ 2008-02-05 02:16 UTC (permalink / raw)
To: pgsql-sql
Is there any way to use except that won't remove the non-distinct rows from
the left side of the query?
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Except without elimination of non-distinct rows
@ 2008-02-05 02:19 Tom Lane <tgl@sss.pgh.pa.us>
parent: Ray Madigan <ray@madigans.org>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2008-02-05 02:19 UTC (permalink / raw)
To: Ray Madigan <ray@madigans.org>; +Cc: pgsql-sql
"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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Except without elimination of non-distinct rows
@ 2008-02-05 03:23 Ray Madigan <ray@madigans.org>
0 siblings, 0 replies; 3+ messages in thread
From: Ray Madigan @ 2008-02-05 03:23 UTC (permalink / raw)
To: pgsql-sql
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2008-02-05 03:23 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-02-05 02:16 Except without elimination of non-distinct rows Ray Madigan <ray@madigans.org>
2008-02-05 02:19 ` Tom Lane <tgl@sss.pgh.pa.us>
2008-02-05 03:23 Re: Except without elimination of non-distinct rows Ray Madigan <ray@madigans.org>
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