-- 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 column DATAURI varchar(256); update CMDATA set DATAURI = (select concat(concat('/repository/sid/cm/oid/', CMSTOREIDS.STOREID),'/content') FROM CMSTOREIDS WHERE CMDATA.CMID = CMSTOREIDS.CMID)