Employee Management System

(A DBMS Case Study)
   

Aditya R. Kudchadkar Yousuf Khan Sriram Narsimhan Saurav Demta

060341026 060341027 060341029 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 predecided. 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 ProjectID,Project Name,Start date, End date, Status AccessoryID,Accessory Name, Model, Brand

Project

Accessory

Entities Identified (contd.)

Manager

Trainer

MgrCode, Mgr Name,Mgr str date,Mgr end date,Mgr salary,Mgr qualification, Mgr dept TrngCode, Trng Name,Trng str date,Trng end date,Trng salary,Trng qualification,Trng dept Desig Code,Desig Name, Salary slab id Salary slab id,sal slab id desc,sal amt,HRA,DA,deduction,total amount

 

Emp type
 

Salary slab

Entity Relationship Diagram

First Normal Form (1NF)
Emp id Emp name Dept DOJ …. Project_id Access_id

Second Normal Form (2NF)

Employee  Emp ID (PK)  Emp name  DOB  DOJ  Designation id (FK)  Designation name  Dept  Manager code (FK)  Trainer code (FK)  Project code (FK)  Project role

Project  Project ID (PK)  Project name  Proj start date  Proj end date  Status Accessory  Accessory ID (PK)  Accessory Name  Model  Brand  Emp id (FK)  Issue date  Return date

2NF (contd.)

Manager  Mgr code (PK)  Mgr name  Mgr str date  Mgr end date  Mgr salary  Mgr qualification  Mgr department

Trainer  Trainer code (PK)  Trainer name  Trng str date  Trng end date  Trng salary  Trng qualification  Trng department

2NF (contd.)

Emp type details  Designation code (PK)  Designation name  Salary slab ID (FK)  Salary amount

Sal slab details  Sal slab ID (PK)  Sal slab desc  Sal amount  HRA  DA  Deductions  Total salary

2NF (contd.)
EMPLOYEE EmpID (PK) Emp name DOB DOJ Desig id Desig name Dept Mgr Trng Code code Proj code Proj role

2NF (contd.)
PROJECT Project ID (PK) Project Name St _date End_ date Status

2NF (contd.)
ACCESSORY Access ID (PK) Access Name Model Brand Emp ID Issue date Return date

2NF (contd.)
MANAGER Mgr code (PK) Mgr str Mgr end Mgr name date date Mgr sal Mgr Mgr qualify dept

2NF (contd.)
TRAINER Trng code Trng str (PK) Trng name date Trng end Trng date sal Trng qualify Trng 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 ID (PK)  Emp Name  DOB  DOJ  Qualification  Desig code (FK)  Dept Project  Project ID (PK)  Project Name  Start date  End date  Status

Emp Proj  Emp ID (FK)  Project ID (FK)  Project Role Accessory  Access ID (PK)  Access Name  Model  Brand Emp Accessory  Emp ID (FK)  Access ID (FK)  Issue date  Return date

3NF (contd.)

Manager  Mgr code (PK)  Mgr name  Mgr str date  Mgr end date  Mgr salary  Mgr qualify  Mgr dept

Trainer  Trng  Trng  Trng  Trng  Trng  Trng  Trng

code (PK) name str date end date salary qualify dept

3NF (contd.)

Emp Type  Desig code (PK)  Desig name  Salary slab id (FK) Sal slab details  Salary slab id (PK)  Salary slab desc  Sal amount  HRA  DA  Deduction  Total

Emp Mgr  Emp ID (FK)  Mgr code (FK) Emp Trng  Emp ID (FK)  Trng code (FK)

3NF (contd.)
EMPLOYEE Emp ID (PK) Emp Name DOB DOJ Qualify Desig 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 (PK) Mgr name Mgr str date Mgr end date Mgr sal Mgr qualify Mgr dept

3NF (contd.)
TRAINER Trng code (PK) Trng name Trng str Trng end date date Trng sal Trng qualify Trng 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 Emp ID Emp name DOB DOJ Qualify Desig code Dept Data type Numeric Varchar Date/Time Date/Time Varchar Numeric Varchar 10 5 10 Size 6 30 Constraint Primary Key Not Null " " " Ref (Emp type) Not Null Default

File Design (contd.)
PROJECT Attribute Project ID Project name Start date End date Status Data type Numeric Varchar Date/Time Date/Time Varchar 10 Size 6 30 Constraint Primary Key Not Null " " "Initiated" Default

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 Accessory ID Access Name Model Brand Data type Numeric Varchar Varchar Varchar Size 10 20 10 15 Constraint Primary Key Not Null Not Null Not Null Default

File Design (contd.)
EMP_ACCESS Attribute Emp ID Accessory ID Issue date Return date Data type Numeric Numeric Date/Time Date/Time Size 6 10 Constraint Reference (Employee) Reference (Accessory) Not Null Not Null Default

File Design (contd.)
MANAGER Attribute Mgr Code Mgr name Mgr str date Mgr end date Mgr salary Mgr qualify Mgr Dept Data type Numeric Varchar Date/Time Date/Time Numeric Varchar Varchar 5 10 10 Not Null Not Null Size 6 30 Constraint Primary Key Not Null " " 0 Default

File Design (contd.)
TRAINER Attribute Trng Code Trng name Trng str date Trng end date Trng salary Trng qualify Trng Dept Data type Numeric Varchar Date/Time Date/Time Numeric Varchar Varchar 5 10 10 Not Null Not Null Size 6 30 Constraint Primary Key Not Null " " 0 Default

File Design (contd.)
EMP MGR Attribute Emp ID Mgr Code Data type Numeric Numeric Size 6 6 Constraint Reference (Employee) Reference (Manager) Default

EMP TRNG Attribute Emp ID Trng Code Data type Numeric Numeric Size 6 6 Constraint Reference (Employee) Reference (Trainer) Default

File Design (contd.)
EMP TYPE Attribute Desig Code Designation name Salary slab id Data type Numeric Varchar Numeric Size 5 30 5 Constraint Primary Key Not Null Reference (Sal slab details) Default

File Design (contd.)
SAL SLAB DETAILS Attribute Sal Slab ID Sal Slab Desc Sal Amount HRA DA Deduction Total_sal Data type Numeric Varchar Numeric Numeric Numeric Numeric Numeric Size 5 20 5 4 4 4 5 Constraint Primary Key Not Null 0 0 0 0 0 Default

THANK YOU !!
Any Questions ?

Sign up to vote on this title
UsefulNot useful