What do you mean by a self-referencing foreign key? Explain with the help of an example.
Database Management System > Keys in DDMS > Foreign key
2503
Answer:
A foreign key that refers to its own relation is called self-referencing foreign key. It is also known as recursive foreign key. To understand the concept of self-referencing foreign key, consider the EMPLOYEE
relation shown in Figure below. In this relation, EMP_NO
is the primary key and the attribute MANAGER
refers to EMP_NO
and thus, is the self-referencing foreign key.
This Particular section is dedicated to Question & Answer only. If you want learn more about Database Management System. Then you can visit below links to get more depth on this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.