-- 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 varchar (256)

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