Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Foreign keys
Multicolumn foreign keys
Updates and deletes


Good. Now that we have the table with a foreign key, let's find out how it works.


Try to INSERT a new project into the table project with a manager_id which will be incorrect. Do you think this will succeed?

Stuck? Here's a hint!

For example, type:

INSERT INTO project 
VALUES (6, 'Valentine''s Day', 'A project to send gifts to all of our employees.', 15);