0% found this document useful (0 votes)
12 views22 pages

Dbms Micro

Uploaded by

botacccount82
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
12 views22 pages

Dbms Micro

Uploaded by

botacccount82
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 22

Employee Management System

Database Management (4331603)

Mini Project Report

On

“Employee Management System” Submitted

By

Dhruv navar (236470316069)

Nem vora (236470316070)

Under the guidance of


Ms.Nikita Patel

Submitted in Partial Fulfillment for 3rd Semester of the Degreeof

DIPLOMA IN INFORMATION TECHNOLOGY

2023-2024

Department of Information Technology

TAPI DIPLOMA ENGINEERRING COLLEGE,SURAT

TAPI DIPLOMA ENGINEERING COLLEGE Page | 1


Employee Management System

TAPI DIPLOMA ENGINEERING COLLEGE,SURAT


DEPARTMENT OF INFORMATION TECHNOLOGY

This is no certify that the course based project entitled “Employee


Management System” submitted by dhruv navar(236470316069), nem
vora(236470316070) in partial fulfilment of Database Management
(4331603) Micro project, 3rd
Semester of the award of the degree of Diploma in Information
Technology during academic year 2023-2024

DATE :

Faculty In-charge

Mrs. Nikita k. Patel

TAPI DIPLOMA ENGINEERING COLLEGE Page | 2


Employee Management System

Abstract
An Employee Management System (EMS) is a software application designed to streamline and
automate various processes related to managing employees within an organization. The system
facilitates efficient handling of employee data, including personal details, job roles,
performance metrics, payroll, attendance, and leave management. EMS aims to enhance
human resource (HR) operations by offering tools for recruitment, onboarding, training, and
employee self-service, enabling employees to update personal information, request leaves, and
view payroll details. An Employee Management System (EMS) implemented using SQL serves
as a robust solution for managing and organizing employee information within an
organization. This system employs SQL (Structured Query Language) for database
management, allowing for the creation, retrieval, updating, and deletion of employee records
in a relational database. The EMS encompasses various functionalities, including tracking
employee details (such as personal information, job titles, and contact details), managing
payroll, processing attendance and leave requests, and evaluating performance metrics.
Through SQL queries, HR personnel can efficiently access and manipulate data, generate
comprehensive reports, and conduct analyses to inform strategic decisions. The system serves
as a centralized platform, reducing administrative overhead and enhancing communication

and collaboration between HR departments and employees.

TAPI DIPLOMA ENGINEERING COLLEGE Page | 3


Employee Management System

Acknowledgement
We would like to express our heartfelt gratitude to all those who contributed to the
successful development and implementation of the Employee Management System.
First and foremost, we extend our sincere thanks to our project supervisor and
mentor, Mrs. Nikita Patel, for their invaluable guidance, support, and expertise
throughout the project. Their encouragement and constructive feedback were
instrumental in shaping the direction of our work Each member's unique skills and
perspectives enriched the project, leading to a comprehensive and effective
solution.

My sincere gratitude to Mrs. Binita. B Acharya, HOD of IT department Tapi


Diploma Engineering College. Their cooperation and willingness to share their
experiences greatly informed our design and development process.

TAPI DIPLOMA ENGINEERING COLLEGE Page | 4


Employee Management System

Index

Chapter No. Table of Content Page No.

Certificate 2

Abstract 3

1 Introduction 6

2 Data Requirements 7

3 Entity Relationship Diagram 8

4 Schema Diagram 9

5 Normalization 10

6 Data Dictionary 11

7 Creating Database using Oracle 13

8 Test SQL Queries 18

9 Conclusion 22

References 22

TAPI DIPLOMA ENGINEERING COLLEGE Page | 5


Employee Management System

Chapter :- 1 INTRODUCTION

An In today’s fast-paced business environment, managing employee information accurately and efficiently
is essential for organizational success. The Employee Management System (EMS) is a specialized software
solution designed to centralize, streamline, and secure employee-related data within an organization. It
serves as a robust database system for storing essential information such as personal details, contact
information, job roles, salaries, attendance records, and performance metrics. With a well-designed EMS,
organizations can minimize paperwork, reduce human error, and ensure easy access to accurate
information, enhancing both productivity and data reliability.

Our EMS project, created as part of the Database Management System (DBMS) course, highlights key
database management principles, including data organization, normalization, indexing, and security. The
system is designed to handle large datasets, ensuring quick data retrieval and supporting efficient decision-
making processes within an organization. Using SQL-based queries and relational database concepts, we
have developed a user-friendly and responsive interface for HR teams and managers to access and update
employee records seamlessly.

Additionally, the Employee Management System offers core functionalities such as:

 Employee Record Management: Adding, editing, and deleting employee profiles with essential
personal and professional details.
 Attendance and Leave Tracking: Monitoring employee attendance, leave balances, and requests.
 Payroll Management: Calculating salaries based on attendance, role-based rates, and applicable
deductions.
 Performance and Appraisal Records: Storing performance evaluations to support appraisal and
promotion decisions.

CHAPTER :- 2 DATA REQUIREMENT

TAPI DIPLOMA ENGINEERING COLLEGE Page | 6


Employee Management System

Entities Attributes
Employees Employee_ID
Emp_Name
Department__ID
Role_ID
Hire_Date
Email
Phone

Departments Department_ID
Department_Name

Roles Role_ID
Role_Name
Salaries Salary_ID
Employee_ID
Salary_Amount
Effective_Date

● Relationship–cardinality
● Has – Between Employees and Departments
● Role – Between Department and Roles
● Salary – Between Employees and Salaries
● Employee Role – Between Roles and Employees

CHAPTER:- 3 ENTITIES REALTIONSHIP DIAGRAM

TAPI DIPLOMA ENGINEERING COLLEGE Page | 7


Employee Management System

CHAPTER-4 : SCHEMA DIAGRAM


TAPI DIPLOMA ENGINEERING COLLEGE Page | 8
Employee Management System

Employee
Employee_ID Employee_Name Department_ID Role_ID Hire_Date Email Phone

Department_ID
Department_ID Department_Name

Roles
Role_ID Role_name

Salaries
Salary_ID Employee_ID Salary_Amount Effective_Date

TAPI DIPLOMA ENGINEERING COLLEGE Page | 9


Employee Management System

CHAPTER - 5: NORMALIZATION

CHAPTER -: 6 DATA DICTIONARY

TAPI DIPLOMA ENGINEERING COLLEGE Page | 10


Employee Management System

6.1 Table Name : Employees


Description: Store Employee Information
Field Datatype Size Constraints
Employee_ID Varchar2 10 NOT NULL, Primary key
Employee_Name Varchar2 20 NOT NULL
Department_ID Varchar2 08 ForeignKeyreferencestoDepartment_
idof Departmentstable.

Role_ID Varchar2 07 ForeignKeyreferencestoRole_ idof


Rolestable.

Hire_Date Date Date


Email Varchar2 25
Phone Varchar2 10

6.2 Table Name : Department


Description : Store Department Information
Field Datatype Size Constraints
Department_ID Varchar2 15 NOT NULL , Primary key
Department_Name Varchar2 25 NOT NULL

6.3 Table Name : Roles


Description : Store Role for Employee Information
Field Datatype Size Constraints
Role_ID Varchar2 15 NOT NULL , Primary key
Role_Name Varchar2 20 NOT NULL

6.4 Table Name :Salaries


Description : Store SalaryData
Field Datatype Size Constraints

TAPI DIPLOMA ENGINEERING COLLEGE Page | 11


Employee Management System

Salary_ID Varchar2 10 NOT NULL


Employee_ID Varchar2 10 ForeignKeyreferencestoEmployee_
idof Salarytable.

Salary_Amount Number
Effective_Date Date

CHAPTER :- 7 CREATING DATABASE USING ORACLE

 Creating Commands :

SQL> CREATE TABLE Employees (

Employee_ID VARCHAR2(20) PRIMARY KEY,

TAPI DIPLOMA ENGINEERING COLLEGE Page | 12


Employee Management System

Emp_Name VARCHAR2(30) NOT NULL,

Department_ID VARCHAR2(15),

Role_ID VARCHAR2(15),

Hire_Date DATE,

Email VARCHAR2(50),

Phone VARCHAR2(15),

FOREIGN KEY (Department_ID) REFERENCES Departments(Department_ID),

FOREIGN KEY (Role_ID) REFERENCES Roles(Role_ID)

);

SQL>desc Employees; Output:

SQL> CREATE TABLE DEPARTMENTS(

Department_ID varchar2(15)

Department_Name varchar2(25)

);

SQL>desc Departments;
Output :

SQL> CREATE TABLE ROLES(

Role_ID varchar2(15)

TAPI DIPLOMA ENGINEERING COLLEGE Page | 13


Employee Management System

Role_Name varchar2(20)

);

SQL>desc Roles; Output:

SQL> CREATE TABLE SALARIES(

Salary_ID varchar2(10)

Employee_ID varchar2(15)

Salary_AmountNumber

Effective_Date Date

);

SQL>descSalaries; Output:

 Insert Commands: (Note : insert rows each table)


SQL> INSERT INTO Departments VALUES ('D01', 'Human Resources');

SQL> INSERT INTO Departments VALUES ('D02', 'Finance');

SQL> INSERT INTO Departments VALUES ('D03', 'IT');

SQL> INSERT INTO Departments VALUES ('D04', 'automobile');

SQL> INSERT INTO Departments VALUES ('D05',

'Sales'); SQL>Select * from Departments; Output :

TAPI DIPLOMA ENGINEERING COLLEGE Page | 14


Employee Management System

SQL> INSERT INTO Roles VALUES ('R01', 'Manager');

SQL> INSERT INTO Roles VALUES ('R02', 'Employee');

SQL> INSERT INTO Roles VALUES ('R03', 'Intern');

SQL> INSERT INTO Roles VALUES ('R04', 'HR');

SQL> INSERT INTO Roles VALUES ('R05', 'Analyst');

SQL> Select * from Roles; Output:

SQL> INSERT INTO Employees VALUES('E001', 'John Doe', 'D01', 'R01', TO_DATE('2023-01-
15',
'YYYY-MM-DD'), 'john.doe@example.com', '1234567890');

SQL> INSERT INTO Employees VALUES('E002', 'Jane Smith', 'D02', 'R02', TO_DATE('2022-05-
23', 'YYYY-MM-DD'), 'jane.smith@example.com', '0987654321');

SQL> INSERT INTO Employees VALUES('E003', 'Alice Johnson', 'D03', 'R03', TO_DATE('2023-
03-10', 'YYYY-MM-DD'), 'alice.johnson@example.com', '1122334455');

SQL> INSERT INTO Employees VALUES('E004', 'Bob Brown', 'D01', 'R02', TO_DATE('2022-09-

TAPI DIPLOMA ENGINEERING COLLEGE Page | 15


Employee Management System

05', 'YYYY-MM-DD'), 'bob.brown@example.com', '5566778899');

SQL> INSERT INTO Employees VALUES('E005', 'Charlie White', 'D04', 'R01', TO_DATE('2021-
07-20', 'YYYY-MM-DD'), 'charlie.white@example.com', '2233445566');

SQL> INSERT INTO Employees VALUES('E006', 'Daisy Green', 'D05', 'R04', TO_DATE('2022-11-
01', 'YYYY-MM-DD'), 'daisy.green@example.com', '3344556677');

SQL> INSERT INTO Employees VALUES('E007', 'Eve Black', 'D02', 'R05', TO_DATE('2023-02-
25', 'YYYY-MM-DD'), 'eve.black@example.com', '4455667788');

SQL> Select * from Employees;

Output :

SQL> INSERT INTO Salaries VALUES ('S01', 'E001', 50000, TO_DATE('2024-01-01', 'YYYY-
MMDD'));

SQL> INSERT INTO Salaries VALUES ('S02','E002',75000,TO_DATE('2024-01-01', 'YYYY-MM-


DD'));

SQL> INSERT INTO Salaries VALUES ('S03','E003',50000,TO_DATE('2024-01-01', 'YYYY-MM-


DD'));

SQL> INSERT INTO Salaries VALUES ('S04','E004',80000,TO_DATE('2024-01-01', 'YYYY-


MMDD'));

SQL> INSERT INTO Salaries VALUES ('S06', 'E006', 90000, TO_DATE('2024-06-01', 'YYYY-
MM-
DD'));

SQL> INSERT INTO Salaries VALUES ('S07', 'E007', 75000, TO_DATE('2024-07-01', 'YYYY-
MM-
DD'));

TAPI DIPLOMA ENGINEERING COLLEGE Page | 16


Employee Management System

SQL> INSERT INTO Salaries VALUES ('S05', 'E005', 70000, TO_DATE('2023-01-01', 'YYYY-
MM-
DD'));

SQL> Select * from Salaries;

Output :

CHAPTER -: 8 TEST SQL QUERISE

Note :- Minimum 10 SQL Querise

1.Display all rows and all column of Employees table

SQL> Select * from Employees;

Output:

TAPI DIPLOMA ENGINEERING COLLEGE Page | 17


Employee Management System

2.Display the list of Employee in ascending order of their name Employees table

SQL> Select Emp_name from Employees order by Emp_Nameasc;

Output :

3.Change the name ‘John Doe’ to ‘Tirmale Dhiraj’.

SQL> update employees set Emp_name='Tirmale Dhiraj' where Employee_ID='E001';

Output :

4.Display only those records where Employee holder taken a job in month of May.

TAPI DIPLOMA ENGINEERING COLLEGE Page | 18


Employee Management System

SQL> select emp_name from employees where hire_date='23-may-22';

Output :

5.Display selected rows (Emp_ID of E007) and selected columns (Employee_No,


Emp_Name, Email, Phone) of Employee table.

SQL> select Employee_id,emp_name,email,phone from employees where Employee_id='E007';

Output :

6.Retrieve those records of Employee whose Salaries between is 50000 and 75000.

SQL> select * from salaries where salary_amount between 50000 and 75000; Output

7.Display the Departmentsin descending order of theirDepartmenttable

SQL> select department_name from departments order by Department_namedesc; Output

TAPI DIPLOMA ENGINEERING COLLEGE Page | 19


Employee Management System

8.retrieve a list of employee names along with their department IDs and
departmentnames from the employees and departments tables

SQL> Selectemp_name, employees.department_id, department_namefrom employees

INNER JOIN departments ON employees.department_id = departments.department_id;

Output :

9.Retrieval list all employees along with their role IDs and role names, including
those employees table

SQL> SELECT emp_name, employees.role_id, roles.role_name FROM employees

LEFT OUTER JOIN roles ON employees.role_id = roles.role_id; Output :

10.How can you retrieve a combined list of all employee names and department
names, ensuring no duplicates appear in the results

SQL> select emp_name from employees union select department_name from departments;

TAPI DIPLOMA ENGINEERING COLLEGE Page | 20


Employee Management System

Output

CHAPTER :- 9 CONCLUSION

TAPI DIPLOMA ENGINEERING COLLEGE Page | 21


Employee Management System

In conclusion, the Employee Management System (EMS) plays a vital role in streamlining and
automating the HR processes within an organization. It helps in effectively managing employee
data, attendance, payroll, performance, and other administrative tasks. The EMS enhances
productivity by reducing manual effort, ensuring data accuracy, and improving communication
between HR and employees.the use of SQL in an Employee Management System is fundamental
for storing, managing, and retrieving employee data efficiently. SQL provides a structured way to
interact with relational databases, which ensures data integrity, security, and accessibility.

References
• https://www.w3schools.com/sql/default.asp#gsc.tab=0&gsc.q=dbms
• https://www.javatpoint.com/dbms-tutorial

TAPI DIPLOMA ENGINEERING COLLEGE Page | 22

You might also like