First of all, I am new to DB2 (3 weeks). I want to update a TEST table with PRODUCTION table in a nested select with read only with uncommitted read.
This is what I wanted to do but I got error message. Please help, thanks!
Code:
UPDATE TEST_STAFF S2
SET DEPT = (SELECT DEPT from PRODUCTION_STAFF
WHERE JOB = S2.JOB
ORDER BY DEPT
FETCH FIRST 1 ROWS ONLY
FOR READ ONLY WITH UR
);