I have a column on 1 table (entry_filed_dte column) that I need to update with values from the entry_filed_dte column on a second table. The following SQL statement did exactly what I wanted it to do in the SQL Server world. However, it does not work in DB2.
Can anybody help? Thanks!!!
UPDATE tn1odicu
SET tn1odicu.entry_filed_dte = b.entry_filed_dte
FROM tn1odten b
JOIN tn1odicu a
ON a.sail_dte = b.sail_dte
and a.release_dte = b.release_dte
and a.port_code = b.port_code
and a.entry_num = b.entry_num
;
Can anybody help? Thanks!!!
UPDATE tn1odicu
SET tn1odicu.entry_filed_dte = b.entry_filed_dte
FROM tn1odten b
JOIN tn1odicu a
ON a.sail_dte = b.sail_dte
and a.release_dte = b.release_dte
and a.port_code = b.port_code
and a.entry_num = b.entry_num
;