Update itemdynamic set taxid=0 where (storeid=230 and itemid in (select [id] from item where departmentid = 49))
