Which clause should you include in your FOREIGN KEY constraint?

You are the designer of a SQL database on an instance of SQL Server 2008. Your database contains a Course table and an Instructor table defined as follows:


You want to create a FOREIGN KEY constraint to associate the two tables and prevent a user from deleting an instructor who is currently assigned to teach a course.
Which clause should you include in your FOREIGN KEY constraint?
A. ON DELETE NO ACTION
B. ON DELETE CASCADE
C. ON DELETE SET NULL
D. ON DELETE SET DEFAULT

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.