I am working on an iSeries v7r1 to consolidate customer accounts after de-deuplication. I am struggling with a fairly simply update to a single field from a value in another table.
tbl_target
CUSTNUM
tbl_source
CUSTNUM_NEW
CUSTNUM_OLD
MASTER
What I need to do is
UPDATE tbl_target.CUST NUM=tbl_source. CUSTNUM_NEW WHERE tbl_target.CUST NUM = tbl_source_OLD ONLY getting the records from tbl_source.MAST ER=0
I can post the SQL I have tried tomorrow but thought it might be easier explained without.
tbl_target
CUSTNUM
tbl_source
CUSTNUM_NEW
CUSTNUM_OLD
MASTER
What I need to do is
UPDATE tbl_target.CUST NUM=tbl_source. CUSTNUM_NEW WHERE tbl_target.CUST NUM = tbl_source_OLD ONLY getting the records from tbl_source.MAST ER=0
I can post the SQL I have tried tomorrow but thought it might be easier explained without.
Comment