-
Notifications
You must be signed in to change notification settings - Fork 0
/
DataBase
61 lines (55 loc) · 2.2 KB
/
DataBase
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
Use Master
GO
CREATE DATABASE ProjectTrackingDB
GO
USE ProjectTrackingDB
GO
CREATE TABLE Projects
(
ProjectID INT PRIMARY KEY IDENTITY,
ProjectName NVARCHAR(100),
StartDate DATETIME,
EndDate DATETIME,
ClientName NVARCHAR(100)
)
CREATE TABLE Employees
(
EmployeeID INT PRIMARY KEY,
EmployeeName NVARCHAR(100),
Designation NVARCHAR(100),
ManagerID INT,
ContactNo NVARCHAR(15),
EMailID NVARCHAR(30),
SkillSets NVARCHAR(100)
)
CREATE TABLE UserStories
(
UserStoryID INT PRIMARY KEY,
Story NVARCHAR(4000),
ProjectID INT REFERENCES Projects(ProjectID)
)
CREATE TABLE ProjectTasks
(
ProjectTaskID INT PRIMARY KEY IDENTITY,
AssignedTo INT REFERENCES Employees(EmployeeID),
TaskStartDate DATETIME,
TaskEndDate DATETIME,
TaskCompletion INT,
UserStoryID INT REFERENCES UserStories(UserStoryID)
)
CREATE TABLE ManagerComments
(
ManagerCommentID INT PRIMARY KEY IDENTITY,
Comments NVARCHAR(2000),
ProjectTaskID INT REFERENCES ProjectTasks(ProjectTaskID)
)
INSERT INTO Employees VALUES(1000,'John Mike','Project Manager',null,'36672566290','[email protected]','.NET Framework')
INSERT INTO Employees VALUES(1001,'Mark Andrus','Developer',1000,'3667233322','[email protected]','.NET Framework, ASP.NET MVC')
INSERT INTO Employees VALUES(1002,'Johnny Richard','Developer',1000,'3667299999','[email protected]','Angular JS')
INSERT INTO Employees VALUES(1003,'Maria Andrus','Developer',1000,'3667277777','[email protected]','jQuery, JavaScript')
INSERT INTO Employees VALUES(1004,'Richy Richard','Designer',1000,'3667277771','[email protected]','HTML 5, CSS 3')
INSERT INTO Employees VALUES(1005,'Honey Deskter','Designer',1000,'3667222222','[email protected]','HTML 5, CSS 3')
INSERT INTO Employees VALUES(1006,'Doketo Richy','Developer',1000,'36672512223','[email protected]','.NET Framework, ASP.NET, ASP.NET MVC')
INSERT INTO Employees VALUES(1007,'June M.','Designer',1000,'3667278787','[email protected]','HTML 5, CSS 3')
INSERT INTO Employees VALUES(1008,'Anjala Johns','Developer',1000,'3667298989','[email protected]','.NET Framework')
INSERT INTO Employees VALUES(1009,'Austin A.','Developer',1000,'36672590009','[email protected]','SQL Server')