SQL Procedure- Hierarchy listing of table content
From: Ludwig via SQLMonster.com (forum_at_SQLMonster.com)
Date: 02/16/05
- Next message: Alejandro Mesa: "RE: SQL Procedure- Hierarchy listing of table content"
- Previous message: sysbox27: "alter column with PK / index"
- Next in thread: Alejandro Mesa: "RE: SQL Procedure- Hierarchy listing of table content"
- Reply: Alejandro Mesa: "RE: SQL Procedure- Hierarchy listing of table content"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Feb 2005 20:17:45 GMT
Have an employee_tbl ( employee_id,, Manager_id), need a procedure or
function whose outcome will list the company hierarchy (top to buttom
regardless of the level depth) of Who reports to Who based on data in
Employee_tbl. i.e.
John Doe
Jane Doe -----| kerry ---- | Bugsie--|Joe
| Marg | Klein
| Rose
Jack Hanna ---| Kelly
|Steve
Martina Higis-|Patrick
|bernice
Thanks in advance
-- Message posted via http://www.sqlmonster.com
- Next message: Alejandro Mesa: "RE: SQL Procedure- Hierarchy listing of table content"
- Previous message: sysbox27: "alter column with PK / index"
- Next in thread: Alejandro Mesa: "RE: SQL Procedure- Hierarchy listing of table content"
- Reply: Alejandro Mesa: "RE: SQL Procedure- Hierarchy listing of table content"
- Messages sorted by: [ date ] [ thread ]