From: Bruce Stephens <bruce@cenderis.demon.co.uk>
To: pgsql-sql@postgresql.org
Subject: Re: [SQL] Duplicate rows
Date: 16 May 1998 15:02:11 +0100
Message-ID: <m3wwbme2l8.fsf@cenderis.demon.co.uk> (raw)
References: <Pine.LNX.3.95.980516081545.14769B-100000@shell.mpsi.net>
Andy Lewis <alewis@mpsi.net> writes:
> Right, I know that there are dups in the column. But, I don't know
> where they are nor do I know their value(s). I want to be able to
> find, say, two interger values that are in the same column but,
> different rows.
How about
SELECT t1.col,t1.oid, t2.oid FROM fred AS t1, fred AS t2
WHERE t1.col=t2.col AND t1.oid<t2.oid
(I haven't tested this, but it's the right kind of idea: select the
interesting bits from a self-join.)
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: bruce@cenderis.demon.co.uk
Subject: Re: [SQL] Duplicate rows
In-Reply-To: <m3wwbme2l8.fsf@cenderis.demon.co.uk>
* 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