Which action should you take?

You are a database developer on an instance of SQL Server 2008. You are designing an application to be used by the human resources department. Your Employee table needs to contain the following information:
• The employee’s unique identifier
• The employee’s last name and first name
• The numeric identifier of the department in which the employee works
• The unique employee identifier of the employee’s manager
• The date the employee was hired
You want to be able to easily navigate the organization chart using a tree-like structure and easily identify each employee’s level in the organization chart. You also want to minimize code complexity. Which action should you take?
A. Implement separate tables for the employees and the employees’ managers with a FOREIGN KEY constraint that relates the two tables.
B. Implement a single Employee table with the EmpID column as a hierarchyid data type.
C. Implement a single Employee table that represents each employee using an xml data type.
D. Implement a single Employee table that includes a FOREIGN KEY constraint on the MgrID column that references the EmpID column.

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.