stored procedure that can fetch Hierarchical data from a table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ranu2006
    New Member
    • Jul 2007
    • 3

    stored procedure that can fetch Hierarchical data from a table

    Hi All,

    I want to write a stored procedure that can fetch Hierarchical data from a table

    I will be passing Employee Name and I want to fetch his seniors employees and his junior employees

    Tried with Connect by but didn get expected result .

    Can any one help in this regard .

    M new to stored procedure and Oracle

    Thanks in advance.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Dear ranu

    can you kindly post the table structure with some sample data ,for my reference.

    Comment

    • ranu2006
      New Member
      • Jul 2007
      • 3

      #3
      Originally posted by debasisdas
      Dear ranu

      can you kindly post the table structure with some sample data ,for my reference.
      Thanks for your response well "Connect By" solved my problem .

      Comment

      • vs24284
        New Member
        • Aug 2007
        • 1

        #4
        Originally posted by ranu2006
        Thanks for your response well "Connect By" solved my problem .

        Hi I am facing the same problem. Can u please let me know the solution

        Vinay

        Comment

        • sangam56
          New Member
          • Nov 2007
          • 68

          #5
          Yes you can use the CONNECT BY statement for Oracle. It is very easy to do so. Do you have any table structure of your own so that I can help you.

          _______________ _______________ _______________ _______________ _____
          http://dotnetspidor.bl ogspot.com

          Comment

          Working...