1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

SQL (SAS) Help

Discussion in 'BBS Hangout' started by Grumbler, May 20, 2013.

Tags:
  1. Grumbler

    Grumbler Member

    Joined:
    Jun 18, 2012
    Messages:
    215
    Likes Received:
    4
    From > To
    A > B
    B > C
    B > D
    C > B
    C > E

    From To1 To2 To3 To4 etc.
    A > B C D E
    B > C D E
    C > B E

    so i am trying to find all linked nodes in the above example.
    how would i do that in SQL or SQL within SAS. basically the same thing.

    all i want to do is find all linked nodes to the original node.
    > is the direction. 1st column is the From node, To is the destination node.
    You can name it to To1, To2 etc..

    Must be able to handle more than just the example.

    Thanks a bunch.
     
  2. Grumbler

    Grumbler Member

    Joined:
    Jun 18, 2012
    Messages:
    215
    Likes Received:
    4
    From To1 To2 To3 To4 etc.
    A > B C D E
    B > C D E
    C > B D E

    updated C line, should be B D E, not just D E.
     

Share This Page