📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is a self-referencing foreign key?

A. A foreign key with no parent
B. A foreign key that references the primary key of the same table ✅
C. A foreign key that references another database
D. A primary key

Correct Answer: B. A foreign key that references the primary key of the same table

Explanation

A self-referencing foreign key, such as ManagerID in Employee referencing EmpID, links rows within one table.