--ABS-120705 / ABS-120719
DELETE FROM CONTRACTPRODUCTDELFREQCOMPL CPD
WHERE ROWID NOT IN
(SELECT MIN(ROWID)
FROM CONTRACTPRODUCTDELFREQCOMPL CP
GROUP BY CP.CONTRACTPRODUCT_ID);
COMMIT;

ALTER TABLE CONTRACTPRODUCTDELFREQCOMPL
ADD CONSTRAINT XPKCONTRACTPRODUCTDELFREQCOMPL PRIMARY KEY (CONTRACTPRODUCT_ID);