Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2005
    Posts
    1

    Red face Unanswered: recursive Query/hierarchical query

    Hi,

    I have an employee table wich contain information about an employee and also his/her manager's id. which refers to the employeeid field in same table.

    I need a query which will give me all employees under a given employee, not only upto one level, but upto all available levels.

    thanks,

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    you cannot do that with sql except in oracle (and maybe db2, i'm not sure)
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

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