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

Home -> Community -> Usenet -> c.d.o.misc -> Re: create three column unique constraint on existing table

Re: create three column unique constraint on existing table

From: Jack Wang <nospam_at_nospam.com>
Date: Mon, 18 Aug 2003 22:21:49 GMT
Message-ID: <1kc0b.77333$tQ2.2003450@news1.telusplanet.net>


SELECT *
FROM T1 a
WHERE ROWID >=
(
SELECT MIN(ROWID)
FROM T1 b
WHERE a.c1 = b.c1
AND a.c2 = b.c2
AND a.c3 = b.c3
);

"Doron" <doron_almog_at_msn.com> wrote in message news:995517bc.0308181152.209df81e_at_posting.google.com...
> Hi,
> I want to create a unique validated constraint on three columns of a
> very large existing table. the create is failing due to the validation
> process.
>
> anybody got any SQL code that will help me determine in which rows the
> data appears more then once?
>
> thanks,
> Doron
Received on Mon Aug 18 2003 - 17:21:49 CDT

Original text of this message

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