Only this week, get the SQL Complete Track of 9 courses in a special prize of $330 $89!
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);