-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDDL_Group_4.sql
85 lines (66 loc) · 1.8 KB
/
DDL_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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
----Game_Package_Details
CREATE TABLE Game_Package_Details(
Package_ID number(10) PRIMARY KEY,
Package_Name varchar(30) not null
);
---- Game_Details
CREATE TABLE Game_Details (
Game_ID number(10) PRIMARY KEY,
Game_Name varchar(50) not null,
Game_Platform varchar(30) not null,
Game_release_date date not null,
Game_sales int
);
---- Emp_Details
CREATE TABLE Emp_Details (
Emp_ID number(10) PRIMARY KEY,
Emp_First_Name varchar(30) not null,
Emp_Last_Name varchar(30) not null,
Gender varchar(1),
Emp_Department varchar(20),
Emp_Type varchar(30),
Emp_DOJ date,
Emp_Salary int,
Emp_Work_Location varchar(10),
Game_ID number(10),
Manager_ID number(10)
);
----Bug_Management
CREATE TABLE Bug_Management (
Bug_Emp_ID number(20),
Bug_ID number(10),
Emp_ID number(10),
Bug_Report_Date DATE,
Bug_Resolved_Date DATE
);
----Package_Management
CREATE TABLE Package_Management(
Package_EMP_ID int PRIMARY KEY,
EMP_ID number (10),
Package_ID number (10),
Deployement_Date Date
);
--drop table Bug_Details;
----Bug_Details
CREATE TABLE Bug_Details (
Bug_ID NUMBER(10) PRIMARY KEY,
Game_ID number(10),
Bug_Details VARCHAR(30),
Bug_Type VARCHAR(30),
Bug_Severity VARCHAR(30),
Bug_Status varchar(10),
Package_Id number(10)
);
----Bug_Fix_Document
CREATE TABLE Bug_Fix_Document (
Bug_Doc_ID varchar(20) PRIMARY KEY,
Bug_Doc_Name varchar(30) not null,
Bug_ID NUMBER(10)
);
----Document_Management
CREATE TABLE Document_Management (
Doc_Emp_ID number(20),
Bug_Doc_ID number(10),
Emp_ID number(10),
Doc_Created_Date DATE
);