SQL KIDS
Wednesday, May 11, 2011
Hirarchy Query
with x as(select emp_id,emp_name,mgr_id from employee where emp_id=7
union all
select e.emp_id,e.emp_name,e.mgr_id from x inner join employee e
on x.mgr_id=e.emp_id )
select * from x
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment