Quote:
Originally posted by jrk
Wow...very fast reply...sincerely appreciate that. Is there a good discussion on handling recursive relationships efficiently that you could point me to?...maybe a good book, or article on the Web.
Thanks again,
Randy
|
Recursive structures can often be viewed as trees, or more generally as a graph structure. For storage and manipultation of graph structures within current RDBMSs you will want to search for information on the two primary approaches: nested sets & adjacency lists.
Joe Celco, who I would typically avoid, has a 3 part article on nested sets that can be linked to from
http://mark.stosberg.com/Bookmarks/D..._on_Tree_data/
From these articles and searches you should find many discussions of different methods for implementing these structures through procedures and triggers.
With the lack of an explosion operator in ANSI SQL you could also try to manually maintain an explosion table.
Hope this is what you were looking for.