TitleistDBA
IS-IT--Management
I keep getting an error on this update. For some reason it doesn't like the FROM clause. Can anyone help?
UPDATE MITBAL
SET MBWHSL = 'SPECIAL'
FROM MVXCJDTDVL.MITMAS, MVXCJDTDVL.MITBAL
WHERE MVXCJDTDVL.MITMAS.MMITTY in ( 'wM1','WM2' ,'3LY','3L1')
AND MVXCJDTDVL.MITMAS.MMCONO = MVXCJDTDVL.MITBAL.MBCONO
AND MVXCJDTDVL.MITMAS.MMITNO = MVXCJDTDVL.MITBAL.MBITNO;
UPDATE MITBAL
SET MBWHSL = 'SPECIAL'
FROM MVXCJDTDVL.MITMAS, MVXCJDTDVL.MITBAL
WHERE MVXCJDTDVL.MITMAS.MMITTY in ( 'wM1','WM2' ,'3LY','3L1')
AND MVXCJDTDVL.MITMAS.MMCONO = MVXCJDTDVL.MITBAL.MBCONO
AND MVXCJDTDVL.MITMAS.MMITNO = MVXCJDTDVL.MITBAL.MBITNO;