Figure 2 shows an attempted delete using the command
, DELETE
FROM Departments WHERE DeptID = ‘d002’. The attempt will
fail because DELETE is set to RESTRICT (see the Table Setup
SQL window) and there are two employees with the foreign key of
DeptID = ‘d002’ referencing this department row in the
Departments table.