      
CREATE UNIQUE INDEX XIF11STOCKVALUEAVGPP ON STOCKVALUEAVGPP
(
       PRODUCT_LINK_ID                ,
       SIZEDEFINITION_LINK_ID         ,
       QUALITYGRADE_ID                ,
       CUSTOMEROWNED                  ,
       CUSTOMER_LINK_ID               ,
       TRANSACTIONDATE                
);


ALTER TABLE STOCKVALUEAVGPP MODIFY (CUSTOMER_LINK_ID NUMBER NULL);