I have the following code to update records in MIITEM which works fine, But how can i use data from another table called [WI] dynamically
use DB1;
Go
update MIITEM
set [fldXml]= '<fields>
<field5>USE DISC:300230 FORMED OD:13.48 BH SPEC:8/8/6.003, BH Size: 0.656, C/S Spec: 90/0.843/CONICAL 2</field5>
<field6>1 - CL THRU PLATE-V/S HOLE SIZE:5/8"Z1 V:0.125 L:0.125 COLOR:100270 AGC REVERSE DISC</field6>
<field7>N/A</field7>
</fields>'
where [itemId]='500201'
here is the data looks like in Source table
Here is the data looks like in the Application
Here is the record in the MIITEM or Destination table
I want to replace the text
USE DISC:300230 FORMED OD:13.48 BH SPEC:8/8/6.003, BH Size: 0.656, C/S Spec: 90/0.843/CONICAL 2
by the value in [wi].[DISC_NOTE] field in [WI] table dynamicallyI want to replace
1 - CL THRU PLATE-V/S HOLE SIZE:5/8"Z1 V:0.125 L:0.125 COLOR:100270 AGC REVERSE DISC
by the value [wi].[WHEEL_NOTE] field dynamicallyI want replace
N/A
[wi].[ASSEMBLY_NOTE] field from [WI] table. to go between field dynamically