Iterative function in sql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rohitbasu77
    New Member
    • Feb 2008
    • 89

    Iterative function in sql

    Hi,

    I need to write a sql query where i want to select all the parent - child relation,

    A parent has many childs, a child can become a parent and can have many childs.

    so some iterative function is to be written.....

    but have no idea of writing those in sql.

    can any one help me.

    thanks in advance
    rohit
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    try to use CONNECT BY ........PRIOR.

    Comment

    • amitpatel66
      Recognized Expert Top Contributor
      • Mar 2007
      • 2358

      #3
      check for SYS_CONNECT_BY_ PATH function as well

      Comment

      Working...