boulevard,

Since I specifically remember talking to you earlier about this scenario, here are some additional links that I think you will find useful.

 4Ways(10/10)  StoringHierarchy(10/10)  TreeAlternatives(10/10)  Biology(6/10)

NOTE: The numbers after the links are my own 'relevance ratings' based on the similarity of the content to your current project and background (i.e., you already have something that "works", and now you just want alternatives)(i.e., you are looking for reader-friendly overview materials on this subject). If this is a fair characterization of your situation, then these are definitely for you.

NOTE: The links provided here could also be found further down in the articles and nodes in dbwiz's excellent answer.

NOTE: If you are already using Oracle (which I just blankly assumed you weren't) then these links are probably not as useful, but still good reading in case you're interested. Try the Oracle-specific approach mentioned elsewhere in this thread.

HTH keywords: adjacency list; lookup table; graph; tree; hierarchical data; relational modeling; structure; org chart; data modeling; DAG; GRAPH; node; edge; algorithms; recursive; cyclic; Oracle; oracle connect by; oracle prior; cfRDBTree;

update: Aristotle's answer also matches what you were looking for, he's faster with the "create article" button than scooterm :)


In reply to Re: sql adjacency list by dimar
in thread sql adjacency list by boulevard

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.