ProductsLogo
LogoStudy Documents
LogoAI Grader
LogoAI Answer
LogoAI Code Checker
LogoPlagiarism Checker
LogoAI Paraphraser
LogoAI Quiz
LogoAI Detector
PricingBlogAbout Us
logo

Employee Job Project Management

Verified

Added on  2019/09/26

|5
|749
|393
Report
AI Summary
The assignment is about creating a database for a company that assigns employees to projects based on their job classification and availability. The database consists of four entities: Project, Job, Employee, and Assign. Each project has a unique identification number (ProjNum) and name (ProjName). Each employee has a unique identification number (EmpNum), name (EmpName), job class (JobClass), and charge per hour (ChargeHour). The Assign table links employees to projects based on their job classification and availability.

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
Business Rule:
ï‚· Each employee has one job classification
ï‚· Many employees have one classification
ï‚· Each project needs to assign many employees
ï‚· One employee may assign to multiple project
ï‚· Some employee may not assign to project
A employee can work in one job at a time but in a one job designation we have multiple
employee, according to my assumption we should have one three or four entities, and every
employee , job designation and project must have one unique identification number and using
this we can identify the employee, job and projects.
Entities and Attributes:
Entities Attributes
Project ProjNum
ProjName
Assign AssignID
ProjNum
EmpNum
Hours
Employee EmpNum
EmpName
JobClass
Job JobClass
ChargeHour
Entity Relationship Diagram:
Data Dictionary:

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Table
Name
Attribute Attribute
Descriptio
n
Data
Type
Data
Form
at
Ran
ge
Mandato
ry
Primary
Kay/Forei
gn Key
Foreign
Key
Referen
ce
Table
Project ProjNum Unique
Identifier
of Project
int 999 Y PK
ProjName Name of
Project
Char(4
0)
Aaaa
aa
Y
Assign AssignID Unique
Identifier
of assign
int 999 Y PK
ProjNum Project
identificati
on number
int 999 Y FK Project
EmpNum Employee
identificati
on number
int 999 Y FK Employ
ee
Hours Hours
work by
employee
Decim
al
99.9 Y
Employ
ee
EmpNum Unique
Identifier
of
Employee
int 999 Y PK
EmpNam
e
Employee
name
Char(4
0)
Aaaa
a
Y
JobClass Job class
of
employee
Char(4
0)
Aaaa
a
Y FK Job
Job JobClass Unique
Identifier
of job
Char(4
0)
Aaaa
a
Y PK
ChargeH
our
Charge
per hour
Decim
al
$999.
9
Y
Functional Dependence:
When one attribute uniquely determines another attribute in the table is called functional
dependency. In the given case study Project number is determine the project name in the
project table.
Normalisation:
Normalisation is a process of assigning the attributes into the entities, it reduces the data
redundancy, and normalisation helps to eliminate the data anomalies.
Document Page
Dependency Diagram:
Table: Project
Primary Key: ProjNo
Foreign Key: None
Normal Form: 3NF
Table: Assign
Primary Key: AssignID
Foreign Key: ProjNo (To Table Project)
EmpNum ( To Table Employee)
Normal Form: 3NF
Table: Employee
Primary Key: EmpNum
Foreign Key: JobClass (To Table Job)
Normal Form: 3NF
Table: Job
Primary Key: JobClass
Foreign Key: None
Normal Form: 3NF
SQL Statement (DDL and DML):
Create Table with constraints:
Document Page
create table Project
(ProjNo int format=99. length = 200 label = " ProjNo ",,
ProjName char(50) Not Null format=Aaaa. length = 200 label = " ProjName ",,
CONSTRAINT prim_key primary key(ProjNo)
);
create table JOB
(JobClass char(40),
ChargeHour decimal(5,2) Not Null,
CONSTRAINT prim_key primary key(JobClass)
);
create table EMPLOYEE
(EmpNum int,
EmpName char(50) Not Null,
CONSTRAINT prim_key primary key(EmpNum),
JobClass char(40),
CONSTRAINT foreign_key foreign key(JobClass) REFERENCES JOB(JobClass)
);
create table ASSIGN
(AssignID int,
Hours decimal(3,1) Not Null,
CONSTRAINT prim_key primary key(AssignID),
ProjNo int,
CONSTRAINT foreign_key foreign key(ProjNo) REFERENCES Project(ProjNo),
EmpNum int,
CONSTRAINT foreign_key foreign key(EmpNum) REFERENCES
EMPLOYEE(EmpNum)
);
Delete:
delete from EMPLOYEE;
delete from Project;
delete from ASSIGN;
delete from JOB;
Insert:
insert into Project values(6,"Evergreen");
insert into Project values(18,"Amber Wave");
insert into Project values(22,"Rolling Tide");
insert into JOB values("Database Designer",105.00);
insert into JOB values("Electrical Engineer",84.50);
insert into JOB values("Programmer",37.75);

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
insert into EMPLOYEE values(103,"june Arbough","Electrical Engineer");
insert into EMPLOYEE values(101,"John New", "database Designer");
insert into EMPLOYEE values(105,"Alice Johnson", "Programmer");
insert into ASSIGN values(303,23.8,6,103);
insert into ASSIGN values(301,19.4,18,101);
insert into ASSIGN values(305,35.7,22,105);
1 out of 5
[object Object]

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]