Hi,
I'm trying to update a coloumn in table A with the corresponding values in table B. It updates the values correctly for the rows that meet the criteria, but changes the values of other rows to NULL.
update ALTMALZEME
set PROJEKODU = (select YENIPROJE from SevkiyatTMP WHERE SevkiyatTMP.MAL ZEMENO = ALTMALZEME.ALTM PKOD)
the Select command works fine and selects the needed rows, but the remaining rows get the value NULL in the coloumn PROJEKODU.
How can i exclude the remaining rows?
Thanks
I'm trying to update a coloumn in table A with the corresponding values in table B. It updates the values correctly for the rows that meet the criteria, but changes the values of other rows to NULL.
update ALTMALZEME
set PROJEKODU = (select YENIPROJE from SevkiyatTMP WHERE SevkiyatTMP.MAL ZEMENO = ALTMALZEME.ALTM PKOD)
the Select command works fine and selects the needed rows, but the remaining rows get the value NULL in the coloumn PROJEKODU.
How can i exclude the remaining rows?
Thanks
Comment