Quote:
Originally Posted by subt13
The idea is that for each row the select query returns it will update Table2 with the value from TableA.Column1.
I was able to do it in SQL Server, however I don't know how in DB2.
|
In standard SQL that should look something like
Code:
update Table2
set Table2.Column1 = (select TableA.Column1 from TableA where ...)
You will need to insert the condition that correlates each row in Table2 with at most one row in TableA, of course.