PrepAway - Latest Free Exam Questions & Answers

which column in the Employee table should you a create a self-reference foreign key constraint?

You administer a Microsoft SQL Server 2012 database. The database contains a table named
Employee.
Part of the Employee table is shown in the exhibit. (Click the Exhibit button.)

Unless stated above, no columns in the Employee table reference other tables.
Confidential information about the employees is stored in a separate table named EmployeeData.
One record exists within EmployeeData for each record in the Employee table.
You need to assign the appropriate constraints and table properties to ensure data integrity and
visibility.
On which column in the Employee table should you a create a self-reference foreign key constraint?

PrepAway - Latest Free Exam Questions & Answers

A.
DateHired

B.
DepartmentID

C.
EmployeelD

D.
EmployeeNum

E.
FirstName

F.
JobTitle

G.
LastName

H.
MiddleName

I.
ReportsToID

6 Comments on “which column in the Employee table should you a create a self-reference foreign key constraint?

  1. 2mec says:

    https://technet.microsoft.com/en-us/library/ms175464(v=sql.105).aspx
    A FOREIGN KEY constraint can reference columns in tables in the same database or within the same table. These are called self-referencing tables. For example, consider an employee table that contains three columns: employee_number, employee_name, and manager_employee_number. Because the manager is also an employee, there is a foreign key relationship from the manager_employee_number column to the employee_number column.




    0



    0

Leave a Reply