What is the use of self-referencing tables ?
I came across the concept lately and I cannot find any simple example of it (every links on Google explain how to use it with many frameworks).
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It only takes a minute to sign up.
Sign up to join this communitySelf referencing tables can be used to store hierarchical data. For example, see my answer to this question.
You can also use self referencing tables to record non-hierarchical relationships which are one-to-one. For example, let's say you have a PERSON
table and you want to have a relationship is currently married to. You might model this with an intersection table, or you might use a simpler self referencing relationship.