You are on page 1of 13

DATABASE MANAGEMENT SYSTEM

CSE 301
TERM PAPER
TOPIC: PAYROLL PROCESSING SYSTEM FOR A
LARGE CORPORATE ORGANIZATION

SUBMITTED TO
Ms. Manal Taneja
SUBMITTED BY
Akashdeep Singh
RE1804A14
10801559
B.TECH CSE(VI-th Sem)
ACKNOWLEDGEMENT

I take this opportunity to present my votes of thanks to all those guidepost


who really acted as lightening pillars to enlighten our way throughout this
project that has led to successful and satisfactory completion of this study.

We are really grateful to Ms. Manal Taneja(Lecturer, lpu) for providing us


with an opportunity to undertake this project in this university and providing us
with all the facilities.

Lastly, We are thankful to all those, particularly the various friends , who
have been instrumental in creating proper, healthy and conductive environment
and including new and fresh innovative ideas for us during the project, their
help, it would have been extremely difficult for us to prepare the project in a
time bound framework.
INTRODUCTION
Payroll system means computing all the legally mandated-taxes and benefits to come up with the
end pay for each employee. Payroll is a business-critical operation for every organization -
people must be paid accurately and on time. It is therefore essential to train staff properly, and
implement procedures and disaster recovery plans to ensure payroll system continuity.

In a company, payroll is the sum of all financial records of salaries for an employee, wages,
bonuses and deductions. In accounting, payroll refers to the amount paid to employees for
services they provided during a certain period of time. Payroll plays a major role in a company
for several reasons. From an accounting point of view, payroll is crucial because payroll and
payroll taxes considerably affect the net income of most companies and they are subject to laws
and regulations.

The primary mission of the payroll department is to ensure that all employees are paid accurately
and timely with the correct withholdings and deductions, and to ensure the withholdings and
deductions are remitted in a timely manner. This includes salary payments, tax withholdings, and
deductions from a paycheck.

Pay Check

A Pay Check is traditionally a paper document issued by an employer to pay an employee for
services rendered. In recent times, the physical paycheck has been increasingly replaced by
electronic direct deposit to bank accounts.

Payroll taxes

Government agencies at various levels require employers to withhold income taxes from
employees' wages.

Problems with old systems


It takes much time to calculate the salary of employee manually.

All the data are stored in files; therefore more space is required to store the files

Not much secured

No backup can be made to handle disasters


Advantages:
The most obvious benefit of payroll software is that payroll calculations - such as tax and
National Insurance deductions - can be completed in a fraction of the time that they take to work
out manually.

Payroll systems can also incorporate, or integrate with, timesheet systems that record employee
attendance or time worked. In this way, information about hours worked, whether collected
automatically as a user or operator logs into a system, or manually entered into an electronic
form, can be automatically transferred into the payroll system.

Using basic payroll data, together with data on attendance and hours worked, payroll systems can
provide a wealth of reports. This allows in-depth analysis of staff costs for the business as a
whole, across departments and even individual jobs and contracts.

Most organizations will also keep other data about employees, such as records of annual leave.
This type of information is usually associated with the broader human resources function. You
can get payroll systems that will record these additional types of information, avoiding the need
for a separate software package.

The ability of payroll packages to provide forecasts means you can plan staff costs and budgets
by entering hypothetical numbers to see the exact total cost of an employee.
Payroll
Employee
empid
Empid
Payrollid
Jobid
Startday
Typeid
Endday
Deptid
Hoursworked
First Name
Gross pay
Last Name
bonus Bonus
Gender
Deductions Bonusid
Address
Net pay Empid
City
Date bonus
State
Bonus
Zip code Deductions payment
Home phone Detucid

Cell phone Empid

E-mail Deduct type

Amount

Tables
Employee

Empid

Jobid

Typeid

Deptid

First Name

Last Name

Gender

Address

City

State

Zip code

Home phone

Cell phone

E-mail

Payroll

empid

Payrollid

Startday

Endday

Hoursworked

Gross pay

Bonus

Deductions

Net pay
Deductions

Detucid

Empid

Deduct type

Amount

Bonus

Bonusid

Empid

Date bonus

Bonus payment

Queries

Create table employee(empid varchar(10), jobid varchar(10), typeid varchar(10), deptid


number(5), first name varchar(10), last name varchar(10), gender varchar(5), address
varchar(15), city varchar(10), state varchar(10), zipcode number(6), homephone number(15),
cellphone number(11), email varchar(30))

Create table payroll(empid varchar(10), payrollid varchar(10), startday varchar(11),endday


varchar(11), hoursworked number(4), grosspay number(10), deductions number(10), bonus
number(10), netpay number(10));

Create table deductions(empid varchar(10),deducid varchar(5), deducttype varchar(10), amount


number(10));

Create table bonus(empid varchar(10), bonusid varchar(10), datebonus varchar(11),


bonuspayment number(10));

Insert into employee values (‘&empid’,’&jobid’,’&typeid’,&deptid,’&first name’,’&last


name’,’&gender’,’&address’,’&city’,’&state’,&zipcode,&homephone,&cellphone,’&email’);

Insert into payroll values (‘&empid’,’&payrollid’,’&startday’,’&endday’, &hoursworked,


&grosspay, &deductions, &bonus, &netpay);

Insert into deductions values (‘&empid’,’&deducid’,’&deducttype’, &amount);


Insert into bonus values (‘&empid’, ‘&bonusid’, ‘&datebonus’, &bonuspayment);

To view all the data:

Select * from employee

Select * from payroll

Select * from deductions

Select * from bonus

To view the selective data

Select empid, jobid, typeid, deptid, first name, last name, gender, address, city,
state, zipcode, homephone, cellphone, email from employee where empid=…

Select empid, Payrollid, Startday, Endday, Hoursworked, Gross pay, Bonus,


Deductions, Net pay from payroll where empid=…

Select Detucid, Empid, Deduct type, Amount from deductions where empid=…

Select Bonusid, Empid, Date bonus, Bonus payment from bonus where empid=….

To insert

Create procedure pyrolldata

Begin

Insert into employee values (‘&empid’,’&jobid’,’&typeid’,&deptid,’&first name’,’&last


name’,’&gender’,’&address’,’&city’,’&state’,&zipcode,&homephone,&cellphone,’&email’);

Insert into payroll values (‘&empid’,’&payrollid’,’&startday’,’&endday’, &hoursworked,


&grosspay, &deductions, &bonus, &netpay);

Insert into deductions values (‘&empid’,’&deducid’,’&deducttype’, &amount);

Insert into bonus values (‘&empid’, ‘&bonusid’, ‘&datebonus’, &bonuspayment);

End payrolldata

To view

Create procedure view


As

n number;

a number;

b number;

Begin

Dbms_output.put_line(‘what u want to do’);

Dbms_output.put_line(‘1.to view all data’);

Dbms_output.put_line(‘2.to view selective data’);

Dbms_output.put_line(‘enter your choice’);

n:=&n;

if(n==1)

then

Dbms_output.put_line(‘of which table you want to view the data’);

Dbms_output.put_line(‘1.employee 2.payroll 3.deductions 4.bonus 5.all’);

Dbms_output.put_line(‘enter ur choice’);

a:= &a;

if(a==1)

then

Select * from employee;

elsif(n==2)

then

Select * from payroll;

elsif(n==3)

then

Select * from deductions;

elsif(n==4)
then

Select * from bonus;

Else

Select * from employee;

Select * from payroll;

Select * from deductions;

Select * from bonus;

Endif

Else

Dbms_output.put_line(‘of which table you want to view the data’);

Dbms_output.put_line(‘1.employee 2.payroll 3.deductions 4.bonus ’);

Dbms_output.put_line(‘enter ur choice’);

b:=&b;

if(a==1)

then

Select empid, jobid, typeid, deptid, first name, last name, gender, address, city,
state, zipcode, homephone, cellphone, email from employee where empid=…;

elsif(n==2)

then

Select empid, Payrollid, Startday, Endday, Hoursworked, Gross pay, Bonus,


Deductions, Net pay from payroll where empid=…;

elsif(n==3)

then

Select Detucid, Empid, Deduct type, Amount from deductions where empid=…;

Else

Select Bonusid, Empid, Date bonus, Bonus payment from bonus where empid=….;

Endif;
End;

To update

Create procedure update

As

Attr

Id

Value

tname

Begin

Dbms_output.put_line(‘of which table u want to update’);

tname:=&tname;

Dbms_output.put_line(‘of which employee you want to update, enter id’);

Id:=&Id;

Dbms_output.put_line(‘which attribute u want to update’);

Attr:=&Attr

Dbms_output.put_line(‘what value u want to give the attribute’);

Value:=&Value

Update tname set attr=’value ‘where empid=’id’

End;

To delete

create procedure delete

as

n number;

tname char;

id varchar;

begin
Dbms_output.put_line(‘1.to delete all the data’);

Dbms_output.put_line(‘2.to delete selective data’);

Dbms_output.put_line(‘enter ur choice 1-2’);

n:=&n;

if(n==1)

then

Dbms_output.put_line(‘of which table u want to delete’);

tname:=&tname;

delete from tname;

else

Dbms_output.put_line(‘of which table u want to delete’);

tname:=&tname;

Dbms_output.put_line(‘of which employee you want to delete,enter id’);

id:=&id;

delete from tname where empid=’id’;

endif;

end;

Refferences

Google
Wikipedia
Dalwinder Salaria

You might also like