Dear members of the lounge,
do you have any good links/articles/tips/guides about the use of self/recursive joins in databases?
I found plenty Access or other database development books mentioning this issue, but never any thorough reading. From my experience, the main issue should be how one can integrate hierarchical data in a relational database. This has many aspects:
– table & relational structure: self joins = quite simple;
– query & lookup list structures, forms, reports = more complicated, especially if there is an unlimited or unknown number of ‘levels’;
– fluently managing the data: adding new data, changing the ‘tree structure’,…
– the possibility to let children inherit their parent’s properties/data unless their are own properties/data entered
– …
Some guidelines & examples here should be quite helpful. I ask this question as in several databases I worked on (semi-professional, as many, probably), such data re-appeared:
– contacts & addresses of people in big companies & government administrations
– a database to manage the ‘family tree’ of my ancesters (though, there must be some useful examples of this…)
– a library where storage place of documents (rooms/closets/shelves/…) could be (known) in a variable level of detail.
– …
In case you find this question too theoretically & vague, I accept this humbly & probably once will return with a more practical question. Otherwise, if you can help me, thanks a lot!
Hans
ps A merry christmas & a happy new year!
(With more peace, development & human rights in the world for everybody)