Hi Robert, if you want you can add additional criteria i.e. specific department, particular period of time sale etc. here are 2 for you:
By Department: UPDATE ITEM SET INACTIVE = 1 FROM DEPARTMENT WHERE DEPARTMENT.IDÞpartmentID AND QUANTITY = 0 AND DEPARTMENT.NAME='Action'
The same you can apply add 2 more tables for [Transaction] and TransactionEntry to make join and then specify the sales period of time as filter criteria.
"Robert" wrote: