Microsoft
70-451 · Question #79
You are a database developer. You plan to design a database solution by using SQL Server 2008. You are creating a database to support the office manager. Your database model has the following…
The correct answer is C. Create Foreign Keys constraints on the TaskID and EmployeeID attributes in the Assignment. See the full explanation below for the reasoning.
Question
You are a database developer. You plan to design a database solution by using SQL Server 2008. You are creating a database to support the office manager. Your database model has the following structure. The database design has the following business requirements:
- An employee can be assigned more than one task.
- Upon completion, the task is deleted.
- When a task is deleted, the associated assignment is deleted.
When an employee is no longer available to complete a task, the employee link to the assignment is replaced with a NULL value. You need to implement the business requirements to maintain data integrity. What should you do?
Options
- ACreate DDL INSERT triggers on the Employee, Task, and Assignment entities.
- BCreate CHECK constraints on the TaskID and EmployeeID attributes in the Assignment entity.
- CCreate Foreign Keys constraints on the TaskID and EmployeeID attributes in the Assignment
- DCreate Foreign Keys constraints on the TaskID and EmployeeID attributes in the Task and
How the community answered
(33 responses)- A9% (3)
- B3% (1)
- C73% (24)
- D15% (5)
Community Discussion
No community discussion yet for this question.