-- Licensed Materials - Property of IBM
--
-- BI and PM: CM
--
-- (C) Copyright IBM Corp. 2012, 2013
--
-- US Government Users Restricted Rights - Use, duplication or disclosure
-- restricted by GSA ADP Schedule Contract with IBM Corp.

alter table CMDATA add DATAURI varchar2(256) null

UPDATE CMDATA SET DATAURI = (SELECT '/repository/sid/cm/oid/' ||  trim(CMSTOREIDS.STOREID) || '/content' AS DATAURI FROM CMSTOREIDS where CMDATA.CMID = CMSTOREIDS.CMID)

