Yeni yaratılan material kodunun tarih bilgileri yanlış girilmiş ise güncellenecek tablolar…

DECLARE @MAT VARCHAR(50)=’TCELT239-T178G6′
UPDATE IASMATVENDORS SET VALIDFROM =’2005-01-01′ WHERE MATERIAL=@MAT
UPDATE IASMATSTOCK SET VALIDFROM =’2005-01-01′ WHERE MATERIAL=@MAT
UPDATE IASMATX SET VALIDFROM =’2005-01-01′ WHERE MATERIAL=@MAT
UPDATE IASMATBASIC SET VALIDFROM =’2005-01-01′ WHERE MATERIAL=@MAT
UPDATE IASMATFMS SET VALIDFROM =’2005-01-01′ WHERE MATERIAL=@MAT
UPDATE IASMATUNITS SET VALIDFROM =’2005-01-01′ WHERE MATERIAL=@MAT
UPDATE IASMATMOP SET VALIDFROM =’2005-01-01′ WHERE MATERIAL=@MAT
UPDATE IASMATMRPSTO SET VALIDFROM =’2005-01-01′ WHERE MATERIAL=@MAT
UPDATE IASMATOPTIONS SET VALIDFROM =’2005-01-01′ WHERE MATERIAL=@MAT