📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

If Dependent is a weak entity of Employee, what is the foreign key in the Dependent table?

A. DepartmentID
B. DependentName alone
C. Salary
D. EmployeeID, which is part of Dependent's primary key ✅

Correct Answer: D. EmployeeID, which is part of Dependent's primary key

Explanation

Dependent stores EmployeeID as a foreign key to its owner, and it forms part of its composite primary key.