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: Duplicated Row Queries

Re: Duplicated Row Queries

From: AJ Allen <aallen20_at_ford.com>
Date: 2000/02/29
Message-ID: <38BC19F1.71BF3620@ford.com>#1/1

Niels Lippke wrote:
>
> Hi,
>
> I need to find these rows in my table, that
> appear more than one time. But I donĀ“t know how
> to construct a SQL-Query that returns
> these rows.
>

run the script UTLEXCPT.SQL to create an exceptions
table under your schema.
Then run something like...
ALTER TABLE      foo
ADD   CONSTRAINT u_foo
      UNIQUE (cola, colb)
USING INDEX
      TABLESPACE ts_name

EXCEPTIONS INTO myschema.exceptions
;
--
*------------------------------*----------------------------*
| Andrew Allen                 | Against fools, the gods    |
| Process Leadership / PSL DBA | themselves contend in vain |
| Dearborn, MI USA             | -- author unknown          |
*------------------------------*----------------------------*
Received on Tue Feb 29 2000 - 00:00:00 CST

Original text of this message

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