Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: finding redundant data in a table

Re: finding redundant data in a table

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Thu, 03 May 2001 00:17:30 +0200
Message-ID: <ep11ftko9gbgjrmus62q1rnbt0p488m1vn@4ax.com>

On Wed, 02 May 2001 14:32:36 GMT, goldensurfer_at_gmx.de (Ralf Zwanziger) wrote:

>How can I find out records in a table in which all fields contain
>the same data, except the ID column (which is my primary key)?
>
>Thanks in advance,
>Ralf

select * from foo x
where exists
(select 'x'
 from foo y
 where y.id <> x.id
 and y.a = x.a
 and y.b = x.b
....
)

Hth

Sybrand Bakker, Oracle DBA Received on Wed May 02 2001 - 17:17:30 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US