-------------------------------------------------------------
-- Recursive Query -- SQL script (Section 3.7)
-- Chapter 3; Oracle Programming -- A Primer
--            by R. Sunderraman
-------------------------------------------------------------
drop table emp;
create table emp (
  eid   integer not null,
  mgrid integer not null);
insert into emp values (2,1);
insert into emp values (3,1);
insert into emp values (4,2);
insert into emp values (5,2);
insert into emp values (6,4);
insert into emp values (7,6);
