Вы находитесь на странице: 1из 40

Employee Management

System
(A DBMS Case Study)

 Aditya R. Kudchadkar 060341026


 Yousuf Khan 060341027
 Sriram Narsimhan 060341029
 Saurav Demta 060341030
MBA (IT) Sem 1 Div. A
Agenda
 Introduction – Operational Structure
 Entities Identified
 Entity Relationship Diagram
 Normalization – 1NF, 2NF, 3NF
 File Design
Operational Structure
 Kanbay is a well-known company, which
works in a banking and services sector. It
manages all the employees as per their
performance.
 There are many employees who work for
the company, according to their
performances their place in the company
is confirmed.The company works on many
projects. The company needs to track its
performance for each project.
Operational Structure (contd.)
 The employees in the project receive a
standard salary.These slabs are pre-
decided.
 The company also appoints a manager
and a trainer for employees for a fixed
duration, generally 2-3 years. The
manager and a trainer are selected on the
basis of their experience & merit. They
have a predecided salary.
Operational Structure (contd.)
 The company also lends the accessories
(laptop,pen drive etc.) to employees.
 It also has to keep track of these items,as
the employee can discontinue to work for
the company. If it so happens, the
accessories have to be deposited by him.
Entities Identified
 Employee
 EmpID,Emp Name,Date of Birth,Date of
Joining,Qualification,Emp type, Department
 Project
 ProjectID,Project Name,Start date,
End date, Status
 Accessory
 AccessoryID,Accessory Name, Model, Brand
Entities Identified (contd.)
 Manager
 MgrCode, Mgr Name,Mgr str date,Mgr end
date,Mgr salary,Mgr qualification, Mgr dept
 Trainer
 TrngCode, Trng Name,Trng str date,Trng end
date,Trng salary,Trng qualification,Trng dept
 Emp type
 Desig Code,Desig Name, Salary slab id
 Salary slab
 Salary slab id,sal slab id desc,sal
amt,HRA,DA,deduction,total amount
Entity Relationship Diagram
First Normal Form (1NF)
Emp id Emp name Dept DOJ …. Project_id Access_id
Second Normal Form (2NF)
 Employee  Project
 Emp ID (PK)  Project ID (PK)
 Project name
 Emp name
 Proj start date
 DOB
 Proj end date
 DOJ
 Status
 Designation id (FK)
 Accessory
 Designation name
 Accessory ID (PK)
 Dept  Accessory Name
 Manager code (FK)  Model
 Trainer code (FK)  Brand
 Project code (FK)  Emp id (FK)

 Project role  Issue date


 Return date
2NF (contd.)
 Manager  Trainer
 Mgr code (PK)  Trainer code (PK)

 Mgr name  Trainer name

 Mgr str date  Trng str date

 Mgr end date  Trng end date

 Mgr salary  Trng salary

 Mgr qualification  Trng qualification

 Mgr department  Trng department


2NF (contd.)
 Emp type details  Sal slab details
 Designation code  Sal slab ID (PK)
(PK)  Sal slab desc
 Designation name  Sal amount
 Salary slab ID (FK)  HRA
 Salary amount  DA

 Deductions

 Total salary
2NF (contd.)
EMPLOYEE

EmpID Emp Desig Desig Mgr Trng Proj Proj


(PK) name DOB DOJ id name Dept Code code code role
2NF (contd.)
PROJECT
Project ID
(PK) Project Name St _date End_ date Status
2NF (contd.)
ACCESSORY
Access ID Access Issue Return
(PK) Name Model Brand Emp ID date date
2NF (contd.)
MANAGER
Mgr code Mgr str Mgr end Mgr Mgr
(PK) Mgr name date date sal Mgr qualify dept
2NF (contd.)
TRAINER
Trng code Trng str Trng end Trng Trng Trng
(PK) Trng name date date sal qualify dept
2NF (contd.)
EMP TYPE

Desig code (PK) Desig name Sal slab id Sal Amt


2NF (contd.)
SALARY SLAB DETAILS

Sal_slab_id (PK) Sal_slab_desc sal_amt HRA DA Deduction Total


Third Normal Form (3NF)
 Employee  Emp Proj
 Emp ID (PK)  Emp ID (FK)
 Emp Name  Project ID (FK)
 DOB  Project Role
 DOJ  Accessory
 Qualification  Access ID (PK)
 Desig code (FK)  Access Name
 Dept  Model
 Project  Brand
 Project ID (PK)  Emp Accessory
 Project Name  Emp ID (FK)
 Start date  Access ID (FK)
 End date  Issue date
 Status  Return date
3NF (contd.)
 Manager  Trainer
 Trng code (PK)
 Mgr code (PK)
 Trng name
 Mgr name
 Trng str date
 Mgr str date  Trng end date
 Mgr end date  Trng salary
 Mgr salary  Trng qualify
 Trng dept
 Mgr qualify

 Mgr dept
3NF (contd.)
 Emp Type  Emp Mgr
 Emp ID (FK)
 Desig code (PK)
 Mgr code (FK)
 Desig name
 Emp Trng
 Salary slab id (FK)  Emp ID (FK)
 Sal slab details  Trng code (FK)

 Salary slab id (PK)

 Salary slab desc

 Sal amount

 HRA

 DA

 Deduction

 Total
3NF (contd.)
EMPLOYEE

Desig
Emp ID (PK) Emp Name DOB DOJ Qualify code Dept
3NF (contd.)
PROJECT
Project ID
(PK) Project Name St _date End_ date Status
3NF (contd.)
ACCESSORY

Accessory ID (PK) Accessory Name Model Brand


3NF (contd.)
MANAGER
Mgr code Mgr str Mgr end Mgr Mgr
(PK) Mgr name date date Mgr sal qualify dept
3NF (contd.)
TRAINER
Trng code Trng Trng str Trng end Trng Trng Trng
(PK) name date date sal qualify dept
3NF (contd.)
EMP TYPE
Designation code
(PK) Designation name Salary slab id
3NF (contd.)
SALARY SLAB DETAILS
Sal_slab_id
(PK) Sal_slab_desc sal_amt HRA DA Deduction Total
File Design
EMPLOYEE

Attribute Data type Size Constraint Default

Emp ID Numeric 6 Primary Key

Emp name Varchar 30 Not Null

DOB Date/Time "

DOJ Date/Time "

Qualify Varchar 10 "

Desig code Numeric 5 Ref (Emp type)

Dept Varchar 10 Not Null


File Design (contd.)
PROJECT

Attribute Data type Size Constraint Default

Project ID Numeric 6 Primary Key

Project name Varchar 30 Not Null

Start date Date/Time "

End date Date/Time "

Status Varchar 10 "Initiated"


File Design (contd.)
EMP_PROJ

Attribute Data type Size Constraint Default

Emp ID Numeric 6 Reference (Employee)

Project ID Numeric 6 Reference (Project)

Role Varchar 15 Not Null


File Design (contd.)
ACCESSORY

Attribute Data type Size Constraint Default

Accessory ID Numeric 10 Primary Key

Access Name Varchar 20 Not Null

Model Varchar 10 Not Null

Brand Varchar 15 Not Null


File Design (contd.)
EMP_ACCESS

Attribute Data type Size Constraint Default

Emp ID Numeric 6 Reference (Employee)

Accessory ID Numeric 10 Reference (Accessory)

Issue date Date/Time Not Null

Return date Date/Time Not Null


File Design (contd.)
MANAGER

Attribute Data type Size Constraint Default

Mgr Code Numeric 6 Primary Key

Mgr name Varchar 30 Not Null

Mgr str date Date/Time "

Mgr end date Date/Time "

Mgr salary Numeric 5 0

Mgr qualify Varchar 10 Not Null

Mgr Dept Varchar 10 Not Null


File Design (contd.)
TRAINER

Attribute Data type Size Constraint Default

Trng Code Numeric 6 Primary Key

Trng name Varchar 30 Not Null

Trng str date Date/Time "

Trng end date Date/Time "

Trng salary Numeric 5 0

Trng qualify Varchar 10 Not Null

Trng Dept Varchar 10 Not Null


File Design (contd.)
EMP MGR

Attribute Data type Size Constraint Default


Emp ID Numeric 6 Reference (Employee)
Mgr Code Numeric 6 Reference (Manager)

EMP TRNG

Attribute Data type Size Constraint Default


Emp ID Numeric 6 Reference (Employee)
Trng Code Numeric 6 Reference (Trainer)
File Design (contd.)
EMP TYPE

Attribute Data type Size Constraint Default

Desig Code Numeric 5 Primary Key

Designation name Varchar 30 Not Null


Reference
Salary slab id Numeric 5 (Sal slab details)
File Design (contd.)
SAL SLAB DETAILS

Attribute Data type Size Constraint Default

Sal Slab ID Numeric 5 Primary Key

Sal Slab Desc Varchar 20 Not Null

Sal Amount Numeric 5 0

HRA Numeric 4 0

DA Numeric 4 0

Deduction Numeric 4 0

Total_sal Numeric 5 0
THANK YOU !!
Any Questions ?