Here is the query that I have come up with but seems not working right.
UPDATE ItemDynamic
SET TaxID=8
FROM ItemDynamic
INNER JOIN Item
ON Item.ID = ItemDynamic.ItemID
WHERE Item.DateCreated>'2013-06-18' and StoreID=11 or StoreID=1 or StoreID=2 or StoreID=3
DateCreated column is not in the ItemDynamic, this column is in Item table. So I join Item table and ItemDynamic table. The problem is, when I tried to update more stores same time, it updates the whole item. But when I update only one store, it updates fine. Is there any reason why?
Thanks,
WHERE Item.DateCreated>'2013-06-18' and (StoreID=11 or StoreID=1 or StoreID=2 or StoreID=3)StoreID IN (...)instead of a bunch ofORs