DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: query help

  1. #1
    Join Date
    May 2002
    Posts
    163

    query help

    I have a table, that has a parent child related data. for example

    table name: test

    parent child
    ------------- -----------
    1
    2 1
    3 2
    4 3

    I want the output with parent, child and grandchild. for example

    parent child grandchild
    ---------- ---------- --------------
    1
    2 1
    3 2 1
    4 3 2

    can anybody help me

    thanks
    Nwcomer
    Student

  2. #2
    Join Date
    Jan 2002
    Location
    Netherlands
    Posts
    1,587
    check out connect by prior syntax...

    http://download-west.oracle.com/docs...si.htm#1023748
    Tarry Singh
    I'm a JOLE(JavaOracleLinuxEnthusiast)
    TarryBlogging
    --- Everything was meant to be---

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width