📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which constraint would prevent a Department from having more than one Manager at a time?

A. A primary key on DeptID alone
B. A CHECK constraint on DeptName
C. A foreign key without uniqueness
D. A UNIQUE constraint on the ManagerID foreign key in Department, or a 1:1 mapping ✅

Correct Answer: D. A UNIQUE constraint on the ManagerID foreign key in Department, or a 1:1 mapping

Explanation

A unique foreign key ensures each manager value appears only once, so no two departments can share the same manager and each department has at most one.