Hi:
I have a design question and I'm sure this is a very common one and would like to know how the smart guy deal w/ it. Let's say I have 2 tables:
1. [Order] Table contains fields:
OrderID, OrderName, FK_SalesPersonID, etc
2. [SalesPerson] Table contains fields:
SalesPersonID, SPName, etc
From above [Order] has a foreign key to [SalesPerson]. What happen if an Order's referencing Sales Peson is deleted?
From what I'm doing I add a "DelFlag" field to the [SalesPerson] Table and when a Sales Person is deleted from my application the Data Row is not actually removed from the Table but simply mark as deleted as "DelFlag" = 1.
But I would like to know how others are dealing w/ this common sceneriao.
Much appreciated