Dbms Micro
Dbms Micro
On
By
2023-2024
DATE :
Faculty In-charge
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
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.
Index
Certificate 2
Abstract 3
1 Introduction 6
2 Data Requirements 7
4 Schema Diagram 9
5 Normalization 10
6 Data Dictionary 11
9 Conclusion 22
References 22
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.
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
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
CHAPTER - 5: NORMALIZATION
Salary_Amount Number
Effective_Date Date
Creating Commands :
Department_ID VARCHAR2(15),
Role_ID VARCHAR2(15),
Hire_Date DATE,
Email VARCHAR2(50),
Phone VARCHAR2(15),
);
Department_ID varchar2(15)
Department_Name varchar2(25)
);
SQL>desc Departments;
Output :
Role_ID varchar2(15)
Role_Name varchar2(20)
);
Salary_ID varchar2(10)
Employee_ID varchar2(15)
Salary_AmountNumber
Effective_Date Date
);
SQL>descSalaries; 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-
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');
Output :
SQL> INSERT INTO Salaries VALUES ('S01', 'E001', 50000, 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'));
SQL> INSERT INTO Salaries VALUES ('S05', 'E005', 70000, TO_DATE('2023-01-01', 'YYYY-
MM-
DD'));
Output :
Output:
2.Display the list of Employee in ascending order of their name Employees table
Output :
Output :
4.Display only those records where Employee holder taken a job in month of May.
Output :
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
8.retrieve a list of employee names along with their department IDs and
departmentnames from the employees and departments tables
Output :
9.Retrieval list all employees along with their role IDs and role names, including
those employees table
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;
Output
CHAPTER :- 9 CONCLUSION
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