You are on page 1of 6

Name ANEEQ AMAN

Reg# 21PWBCS0883
Course Instructor MS Ayesha Javed
Subject DATA BASE
Section B
Assignment No 03

Assignment # 3

Q1. Create an ER Diagram for an Employee Management System.

Name ER diagram of an employee Management System


Abstract he ER Diagram of the Employee management system shows the
relationship between various entities. We can also call it the
blueprint of the employee management system.
Diagram We can also call the ER diagram an Entity Relationship diagram.
Tool Used The ER diagram provides some symbol that is known as the
diagramming tool.
Users The users of the ER diagram are employees and business owner or
company.

What is an Employee Management System?


With the help of an employee management system, employers can easily control the increase in productivity and labor control. The
employee management system also gives information about the employees to the manager. It also manages the working hour of the
employees. We can also say that the Employee management system is an application-based system that is developed with the help of
two applications. One of the applications is developed for employers to handle the information about employees and track employee
attendance. The second one is for companies to store their important data.

Features of employee management system:-


The EmployeeManagement systems provide some features. These features are as below.

1. Employee management: With the help of these features, the system can gather information about the employees. With the
help of this information, the system can track the job performance of the employee and other important matters regarding the
system. It also checks the attendance of the employees.
2. Manage salaries and bonuses: The management of bonuses and salaries can be done by the admin. With the help of the
employee management system, the admin can track the company's expenses and wages. This overall process helps the
company distribute salaries among the employees and other matters regarding the employees' salaries.
3. Manage job department and status: With the help of this feature, the system can manage and monitor the job status of every
employee. This system also helps to calculate the salary for the employee based on the range of their labor or per month. This
system also records all the expenses of the company and stores these data in the company database.
4. Manage and monitor transaction records: With the help of this feature, the admin can track every transaction made by the
employee with the service offered to their customer. This system also records the attendance and leaves of the employees.

The Benefit of the Employee Management System


There is some benefit to using the employee management system. These are as follows.

1. The admin can access all the data quickly because the employee management system can store all the data in one particular
place.
2. It saves the time of the admin, and it also stores all the data in an organized manner.
3. It also provides features for the employee to collaborate with the teammate online in real-time.
4. Create an employee management system ERD template that works for you and your department using the ERD model stencils.

Q2. Convert an ER Diagram of an Employee Management System into tables.


Question NO 1:
Answer:

Question NO 2:
Answer :
Table Name: Employee
Field Description Type Length

emp_ID (PK) Employee ID Int 11

fname Employee First Name Varchar 255

lname Employee Last Name Varchar 255

gender Employee Gender Int 11

age Employee Age Int 11

contact_add Contact Address Int 11

emp_email Employee Email Varchar 255

emp_pass Employee Password Varchar 255

Table Name: Users


Field Description Type Length

admin_ID (PK) Admin ID Int 11


fname Instructor First Name Varchar 255

lname Instructor Last Name Varchar 255

gender Instructor Gender Int 11

age Instructor Age Int 11

contact_add Contact Address Int 11

admin_email Admin Email Varchar 255

admin_pass Admin Password Varchar 255

Table Name: Job Department


Field Description Type Length

job_ID (PK) Job ID Int 11

job_dept Job Department Varchar 30

name Job Name Varchar 30

description Job Description Varchar 30

salary_range Salary Range Varchar 30

Table Name: Salary


Field Description Type Length

salary_ID (PK) Salary ID Int 11

job_ID (FK) Job ID Int 11

Amount Amount Int 11

Annual Annual Expense Date

Bonus Bonus Date


Table Name: Qualification
Field Description Type Length

qual_ID (PK) Qualification ID Int 11

emp_ID (FK) Employee ID Int 11

position Position of Application Varchar 30

requirements Requirements Varchar 30

date_in Date In Date

Table Name: Payroll


Field Description Type Length

payroll_ID (PK) Payroll ID Int 11

emp_ID (FK) Employee ID Int 11

job_ID (FK) Job ID Int 11

salary_ID (FK) Salary ID Int 11

leave_ID (FK) Leave ID Int 11

date Date of Payroll Report Date

report Report Text

total amount Total Amount Int 11

You might also like