I have a simple database with 3 tables, Companies, Contacts and
Indusrty.
Companies
CompanyID (Primary Key) CompanyName Industry
Contacts
ContactID (Primary Key) FirstName CompanyiD
Industry
Industry (Primary ID)
There is a One to Many relationship between
Companies.CompanyID and Contacts.CompanyID
Industry.Industry and Companies.Industry.
I have enabled cascasding deletions for both relationships.
When I delete a company all related contacts are deleted, as expected.
However it does not delete the industry from the Industry table
(assuming the industry is only assigned to that one company I am
deleting. Am I mis-understanding how this works? It works they way I
expect it to between companies and contacts but not Companies and
Industry table. Am I missing something here?
Thanks.