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).

1 Answer 1


Self 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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.