Hello,
I'm trying to update field bkval1 in empeqpi0 with a calculated value from joined select. In both files there is only one row for idno1 and idno for 76U5261. When I run this statement it updates all the rows in empeqpi0 now matter what the idno1 is. Something wrong with the join?
UPDATE LIBZ95/Empeqpi0 SET bkval1 =
(Select
Bkval1+tramount From
Libz95/Empeqpi0 A, Witekr3/ems_trans B
where a.idno1=B.idno
And idno1='76U5261')
I'm trying to update field bkval1 in empeqpi0 with a calculated value from joined select. In both files there is only one row for idno1 and idno for 76U5261. When I run this statement it updates all the rows in empeqpi0 now matter what the idno1 is. Something wrong with the join?
UPDATE LIBZ95/Empeqpi0 SET bkval1 =
(Select
Bkval1+tramount From
Libz95/Empeqpi0 A, Witekr3/ems_trans B
where a.idno1=B.idno
And idno1='76U5261')