|
create table #department
(
dep_no numeric primary key,
dep_name varchar (20),
father_dep_no numeric references #department (dep_no)
)
insert into #department values (1, 'Plan Center', null)
insert into #department values (2, 'R & D Center', null)
insert into #department values (3, 'Design Department', 1)
insert into #department values (4, 'Planning Department', 1)
insert into #department values (5, 'Editor', 1)
insert into #department values (6, 'delphi R & D', 2)
insert into #department values (7, 'java R & D', 2) |
|