Uygulamadan once mutlaka yedek alınız ,Ben test etdim calisiyor .UP DATE nin arasında bosluk bırakmadan yaz .
eksiye duzenler icin >
UP DATE LG_011_ITEMS SET ACTIVE=1 FROM LG_011_ITEMS left outer join LG_011_01_GNTOTST ON LG_011_ITEMS.LOGICALREF = LG_011_01_GNTOTST.STOCKREF WHERE LG_011_01_GNTOTST.ONHAND<1
Sıfır olanlar icin > UP DATE LG_011_ITEMS SET ACTIVE=1 FROM LG_011_ITEMS left outer join LG_011_01_GNTOTST ON LG_011_ITEMS.LOGICALREF = LG_011_01_GNTOTST.STOCKREF WHERE LG_011_01_GNTOTST.ONHAND = 0