-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDML_Group_4.sql
66 lines (50 loc) · 1.46 KB
/
DML_Group_4.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
----Bug_Details
alter table Bug_Details
add constraint BugPacakgeID_fk foreign key (Package_ID)
references Game_Package_Details (Package_ID)
;
alter table Bug_Details
add constraint BugGameID_fk foreign key (Game_ID)
references Game_Details (Game_ID)
;
--Emp_Details
alter table Emp_Details
add constraint GameEmpID_fk foreign key (Game_ID)
references Game_Details (Game_ID)
;
alter table Emp_Details
add constraint EmpManagerID_fk foreign key (Manager_ID)
references Emp_Details (Emp_ID)
;
----Bug_Management
alter table Bug_Management
add constraint Bug_Management_Emp_ID_fk foreign key (Emp_ID)
references EMP_Details (Emp_ID)
;
alter table Bug_Management
add constraint Bug_Management_Bug_ID_fk foreign key (Bug_ID)
references Bug_Details (Bug_ID)
;
---Package_Management
alter table Package_Management
add constraint PackageID_fk foreign key (Package_ID)
references Game_Package_Details (Package_ID)
;
alter table Package_Management
add constraint Package_ID_fk foreign key (EMP_ID)
references EMP_Details (EMP_ID)
;
----Bug_Fix_Document
alter table Bug_Fix_Document
add constraint BugID_fk foreign key (Bug_ID)
references Bug_Details (Bug_ID)
;
---Document_Management
alter table Document_Management
add constraint DocID_fk foreign key (Bug_Doc_ID)
references Bug_Fix_Document (Bug_Doc_ID)
;
alter table Document_Management
add constraint Doc_ID_fk foreign key (EMP_ID)
references EMP_Details (EMP_ID)
;