ECM

how to update custom metadata field from another look up table at UCM?

select did ,XCIVILRECORDNUMBER, lookup.CIVILNUMBER,XEMPNAME,name
from DEV_OCS.DOCMETA , EMPLOYEEANDCIVILNUMBERS2 lookup
where lookup.CIVILNUMBER=DOCMETA.XCIVILRECORDNUMBER
and XEMPNAME is null
create table DOCMETA_bckup
as select * from DOCMETA

commit
update DOCMETA dm
set XEMPNAME=(select name from EMPLOYEEANDCIVILNUMBERS2 where CIVILNUMBER=dm.XCIVILRECORDNUMBER)
where XEMPNAME is null

commit

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s