Hi,
I have a relational database. Pretty simple I created it just for learning from it.
I have two tables "Categories " and "Subcategories" .
I have a field called "CategoryID " in the Subcategories table that is a foreign key , and is related to the first table (categories).
Now what I want to do is, when I delete a row in the "Categories " table, I also want to delete the related rows in the other table (if any exist) at the same time.
I hope I explained the problem accurately, if you need any details please let me know
Thanks in advace,
Wassim
I have a relational database. Pretty simple I created it just for learning from it.
I have two tables "Categories " and "Subcategories" .
I have a field called "CategoryID " in the Subcategories table that is a foreign key , and is related to the first table (categories).
Now what I want to do is, when I delete a row in the "Categories " table, I also want to delete the related rows in the other table (if any exist) at the same time.
I hope I explained the problem accurately, if you need any details please let me know
Thanks in advace,
Wassim
Comment