Propagation constraint: Difference between revisions

Content deleted Content added
mNo edit summary
No edit summary
Line 5:
* Restricted Delete - the user cannot delete the target row until all rows that point to it (via [[foreign key]]s) have been deleted. This means that all Housewares employees would need to be deleted by the user before removing the department from the departmental table.
* Cascades Delete - can delete the target row and all rows that point to it (via foreign keys) are also deleted. The process is the same as a restricted delete, except that the RDBMS would delete the Houseware employees automatically before removing the department.
* Nullifies Delete - can delete the target row and all foreign keys (pointing to it) are set to [[Null (SQL)|null]]. In this case, after removing the housewares department, employees who worked in this department would not have a [[Null (SQL)|NULL]] or (unknown) value for their department.
 
==Bibliography==