I have a simple ordering database set up with product codes and their descriptions, etc. in one table (and the 'product code' field as the primary key) and then a separate table for the orders raised.
When a product becomes obsolete, I would like to be able to prevent anyone from raising a new order against that product code. I can't delete the code from the 'product codes' table as there are related order records against it.
Is there a way to make this code obsolete so new orders can't be placed for it, but keep the previous order records?
When a product becomes obsolete, I would like to be able to prevent anyone from raising a new order against that product code. I can't delete the code from the 'product codes' table as there are related order records against it.
Is there a way to make this code obsolete so new orders can't be placed for it, but keep the previous order records?