pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ray Madigan <ray@madigans.org>
Cc: Pgsql-Sql <pgsql-sql@postgresql.org>
Subject: Re: Except without elimination of non-distinct rows
Date: Mon, 04 Feb 2008 21:19:43 -0500
Message-ID: <11918.1202177983@sss.pgh.pa.us> (raw)
In-Reply-To: <IIEPJABILGOCODDLDNJFCEPECGAA.ray@madigans.org>
References: <IIEPJABILGOCODDLDNJFCEPECGAA.ray@madigans.org>

"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



view thread (3+ messages)  latest in thread

Message-ID: <11918.1202177983@sss.pgh.pa.us>
Permalink:  ../11918.1202177983@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11918.1202177983@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, ray@madigans.org
  Subject: Re: Except without elimination of non-distinct rows
  In-Reply-To: <11918.1202177983@sss.pgh.pa.us>

* 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