Payroll Managements Medium Project
Payroll Managements Medium Project
BERESA ABEBE
Chapter-1
Introduction
1. PROJECT BACKGROUND
This chapter provides an introduction to the project, existing problems, and ways to solve the
existing problems. This payroll management system project is some of its entity and attributes
are very similar to that of company database, but this project selects only few of company
database entities and attributes. As a general to indicate payroll management system this project
contains three chapters those are:
1. Chapter one about the background of the projects
2. Chapter two about the system design of projects
3. Chapter three about the physical implementation of projects
At the end of the project theirs is conclusion about the payroll management system project.
1.1 Project Outline
Current salary system is manual therefore this wants to switch to an automated computerized
salary management system. After building this system we have to integrate it with the existing
computerized system that uses MYSQL server 2005.
The existing system dealing with the client registrations, keeping records of clients, client billing
Hence we can say, employee payroll system will be a subpart of the existing computerized
system. The managers or team leaders of this organization are able to fill out all necessary
information of an employee, i.e., residential address, social security number, type of salary fixed,
monthly or hourly and other relevant information. Moreover, the system should be able to
calculate tax deductions of every employee on monthly basis, throughout offices nationwide,
annually. Finally, the tax files should be sent to tax office.
1.2 Problem Identification
They also have to calculate and keep record of tax of whole organization and maintain tax files
manually. The management of organization also has to deal with bank files manually. All this
work requires a lot of paper work, is extremely time consuming job, and accordingly costly as
well as they have to hire more man power. Since there is always a risk of human errors present in
a manual system so the chances of errors are very high and to figure out such errors is also a very
lengthy procedure. Therefore, this project is decided to switch from a manual system to My SQL
computerized payroll management system.
The requirement of this project is to develop a My SQL based project that is able to deal with
salary and tax calculation of employees within the organization and maintain its data base.
1.3 Existing problem
Presently salary calculation is done manually, it take so much of time to compose salary of all
employees. It also takes very long time to make salary slip ready. Due to manual process some
time it takes very long time, in turn it delays the salary distribution. This is a big problem to
manage when salary is not generated in time. The other main problem is errors, even with double
cross check here or there some errors will happen, this again create large problem. To solve all
this organization requires very good software to take care of all these
Terminology Definition
This section gives a definition and explanation of some of the terms used in the project:
Employee Data: This is the employee's information in the company. It consists of the employee
identification number, employee name, address, sex, pay rate, pension plan flag, and union
member flag.
Payroll Records: The payroll records are used to store each month’s hours worked, and the rates
for that month.
Rates: Rates consists of the percentage that would be deducted from the gross pay depending on
pension plan, state and federal tax. Each employee can have a unique hourly rate.
Payroll Ledger: This is a table that shows the calculated pay of employees and the month in
which they earned the pay. The ledger can be filtered by name, identification number, year and
month.
Hours Worked: This is the number of times that an employee works in a month. The hours
worked is used to calculate the pay that an employee will receive for that month.
Net Pay: The net pay is the final salary amount that would be given to the employee after all the
deductions are subtracted from the gross pay. The deductions include among others taxes, union
member dues and pension plan.
Gross Pay: The gross pay is the amount that the employee earns before the deductions are
subtracted.
Deductions: Deductions are made up of taxes, union membership dues, pension plan. They are
subtracted from the gross pay to give the net pay which is the employee's final pay for the month.
Taxes: The tax consists of the state dues and federal dues. A percentage of the employee's salary
goes to state and country.
Pension Plan: Employees that opted to use the pension plan of the company get to pay a
particular percentage of their pay in preparation for their retirement.
Chapter-2
System Design
2. SYSTEM DESIGN
2.1 CONCEPTUAL DESIGN
A) PAYROLL ENTITIES
1. EMPLOYEE
(Name, SSN, address, sex, salary, dnumber,
2. PAYROLL RECORDS
Hourly worked, rateofmonth, SSN
3. PAYROLL LEDGER
Name, SSN, date
4. DEPARTMENT
Dname, dnumber, multivalued location,
5. PAYMENT
Salary, Payrate, pension , netpay, Grosspay, deduction, tax,
6. PROJECT
Unique Pname, Pnumber, dnumber
B) ATTRIBUTIES AND THEIR DATA TYPES FOR THE ENTITIES, CONSTRAINTS
IF ANY
1. EMPLOYEE
Attribute-----------------Data Type------------------Constraints
Name-----------------------------string ---------------------------NOT NULL,
SSN-------------------------------string ------------------primary key NOT NULL,
Address---------------------------string --------------------------NOT NULL,
Sex---------------------------------char---------------------,
Hourlyworked--------------------integer-------------------,
Salary------------------------------real------------------------ foreign key NOT NULL,
Dnumber-------------------------string----------------------foreign key NOT NULL,
2. PAYROLL RECORDS
Attribute-----------------Data Type-------------------Constraints
Hourlyworked-------------------integer-------------------primary key NOT NULL
Rateofmonth---------------------real------------------------------
SSN--------------------------------string-----------------foreign key NOT NULL
3. PAYROLL LEDGER
Attribute-----------------Data Type-------------------Constraints
SSN-------------------------------string----------------primary key NOT NULL,
Date------------------------------string--------------------------NOT NU
4. DEPARTMENT
Attribute-------------------Data type-------------------Constraints
Dname---------------------------string--------------------------------Unique,
Dnumber------------------------string----------------primary key NOT NULL,
Location--------------------------string-----------------------------,
5. PAYMENT
Attribute------------------Data type-----------------------------Constraints
Salary-----------------------------real------------------primary key NOT NULL,
Payrate----------------------------real----------------------------------NOT NULL,
Pension---------------------------real---------------------------------NOT NULL,
Tax--------------------------------real---------------------------------NOT NULL,
Deduction------------------------real----------------------------------NOT NULL,
6. PROJECTS
Attributes----------------Data type-----------------------Constraints
Pnumber-------------------------integer-------------------primary key NO NULL,
Pname----------------------------String---------------------------------Unique,
i. EMPLOYEE
Attributes----------------------------------------Key types
SSN------------------------------------------------primary key,
dnumber-------------------------------foreign key references Department,
Salary------------------------------------foreign key references Payment,
ii. PAYROLL
Attributes----------------------------------------Key types
Hourlyworked---------------------------------------------primary key
SSN-----------------------------------------------------foreign key
iii. LEDGER
Attributes------------------------------------Key types
SSN-----------------------------------------Primary key and foreign key
iv. DEPARTMENT
Attributes-----------------------------------Key types
Dnumber------------------------------------primary key,
v. PAYMENT
Attributes------------------------------------Key types
Salary-----------------------------------------primary key
vi. PROJECTS
Attributes------------------------------------Key type
Pnumber--------------------------------------primary key
Dnumber--------------------------------------foreign key
D) RELATIONSHIP BETWEEN ENTITIES
a. Between Employee and Department
The relationship is many-to-many Because Many employers can work in many
departments.
Diagrammatically,
Employee ∞ Works-in ∞
Department
Also from many Employees the manager of Departments is one because of this
the relationship between Employee and Department here is one-to-many.
Diagrammatically,
Diagrammatically,
E) CARDINALITY RATIO
The possible cardinality ratios for binary relationship types are 1:1, 1: N, N: 1, and M: N.
1. The cardinality ratio between Employee and Department there is M: N ratio.
2. The cardinality ratio between Employee and payroll there is M: 1 ratio.
3. The cardinality ratio between Employee and Ledger there is 1:1 ratio.
4. The cardinality ratio between Employee and Payment there is M:N ratio.
2. The relation between Employee and Payroll many-to-one since many employer can
have the same hours of works rate.
Diagrammatically it is shown as bellows
3. The relation between Employee and ledger is Partial because Every employee
participate to earn their pay in the same or one month.
Diagrammatically this can be shown as:
4. The relationship between Employee and Payment entity is total participation because
every employee participates in the earning of theirs payments in every month.
Diagrammatically this can be shown as follows:
5. The relationship between Employee and project can be total participation because in
many projects many employees participate to achieve their goals.
Diagrammatically this participation is shown as:
Lname Dnumber
Dnumber Dname
Fname Sex SSN
Name
Mname
Employee M Works-in 1 Department
Location
Hourlyworked
1
Manages
Salary
SSN
Controls
Have
M
Hourly worked
dnumbe
Works-
Payroll on Projects
Earn
Pname
Rate of month Pnumber
Paid
Deduction
SSN Ledger
Payment Salary
Date
Name
Payrate
Tax
Pension
1. Employee table:
Name SSN Salary dnumber Sex Pnumber
2. Department table:
dname dnumber Location
3. Payroll table:
Hourly worked SSN Rate of month
4. Ledger table:
SSN Date
5. Payment table:
Salary Tax Pension Payrate Deduction
6. Project table:
Pnumber Pname dnumber
CHAPTER -3
PHSICAL DESIGN (IMPLEMENTATION)
3 Implementation
Implement the projects in the lab using SQL 2005 DATABASE SERVER
3.1 Creating entire table for the projects with the appropriate data type