Update statement with join

 UPDATE scrcrd SET
scrcrd.sku_health = skrev.sku_health

FROM tbl_SLM_Scorecard scrcrd

JOIN tbl_SLM_SKU_Review skrev

ON scrcrd.material = skrev.material and scrcrd.month_yr = skrev.month_yr

where scrcrd.month_yr = '2015-01-31' and skrev.material is not null

and skrev.sku_health <> scrcrd.sku_health

Comments

Popular posts from this blog

Hey Ram song Akashe Jyotsna meaning

DNX on ubuntu 14.04 throws Missing method exception