0% found this document useful (0 votes)
13 views9 pages

DBMSFINALREPORT

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 9

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION, MUMBAI

GOVERNMENT POLYTECHNIC KARAD

MICRO-PROJECT REPORT
COURSE: DATABASE MANAGEMENT SYSTEM (22319)

Title: Stored procedure for Employee Salary


Management

3rd Semester of Diploma in Computer Engineering


(Academic year: 2023-2024)
Guided By: Prof.M.A.BIRNALE
 Group Details:
Sr.no. Name of group members Roll no Enrollment no
1. Rutuja Arjun Patil 1247 2200100185
2. Shreya Ashok Patil 1248 2200100186
3. Madhura Mahesh Ingawale 1249 2200100187
4. Maitreyee Bhagwan Lohar 1252 2200100191

1
Rational:

An Employee Salary Management System is a software


application designed to streamline the process of managing
employee compensation within an organization. It allows HR
departments and finance teams to efficiently handle payroll,
benefits, and related financial transactions. This system typically
includes features for salary calculation, tax deductions, and direct
deposit. It also helps maintain accurate employee records and
generate pay stubs. The system can be integrated with attendance
and timekeeping modules for precise wage calculations. It enhances
data security and compliance with labor laws by automating
statutory deductions and reporting. Such systems often offer self-
service portals for employees to access their salary information,
reducing administrative overhead. They facilitate financial planning
for the organization and contribute to a transparent and efficient
payroll process.

Intended Course Outcomes :


A. Design normalized database on given data.
B. Create and manage database using SQL command.
C. Write PL/SQL code for given database.
D. Apply triggers on database also create procedure and
function according to condition.

2
Literature Review:

To collect information about our micro-project named ‘Stored


procedure for employee salary management’, we had found
and reviewed many websites and gained information from
internet & books
Websites:
 www.w3schools.com
 www.tutorialspoint.com
 www.youtube.com

Book referred:
Introduction to database management system
Author:ISRD group

Proposed Methodology :
1.Assigning topic of microproject.
2.Collecting the information about topic.
Distribution of proposal related work within group members.
3.Submission of proposal.
4.Follow all procedure for preparing the final project.
5.After successful preparation of project, we will commit our
final report along with presentation

3
Action Plan :
Sr.n Details of Planned Planned
Name of
o activity Start Finish
Responsib
date date
le Team
Members
1. Discussion 11/09/20 11/09/20 All
and 23 23 Members
finalization
of topic

2. Preparation 16/09/20 17/09/20 Shreya


of Proposal 23 23 Patil
3. Collection 11/09/20 17/09/20 Rutuja
of Data 23 23 Patil

4. Project 21/09/20 10/10/20 All


work 23 23 members
5. Editing and Madhura
proof 30/09/20 03/10/20 Ingawale
Reading of 23 23
Content
6. Preparation 28/09/20 02/10/20 Maitreyee
of Report 23 23 Lohar

7. Presentatio 15/10/20 18/10/20 All


n 23 23 members
8. Final
submission 28/10/20 01/11/20 All
of Micro- 23 23 members
Project

4
Resources Used;

Sr.no. Name of Specifications Qty.


Resources
1. Computer Intel i5 processor with 1 for
system 16GB RAM, 512GB each
storage and windows
11
2. Software Oracle 10g express -
package
3. Internet - -

5
Details :

Employee salary management involves the administration of


compensation and payments to employees within an
organization. It encompasses various aspects, including:

Salary Structure: Defining the structure of employee


compensation, which may include a fixed base salary, variable
components (such as bonuses and commissions), and benefits
like health insurance or retirement plans.

Payroll Processing: Managing the process of calculating and


disbursing employee salaries, including withhlding taxes,
deductions, and benefits. This may be done through in-house
payroll systems or outsourcing.

Salary Reviews: Conducting periodic performance and


compensation reviews to assess whether employees are
compensated fairly and making necessary adjustments.

Employee Records: Maintaining accurate records of employee


compensation, pay history, and any changes or adjustments to
salaries.

Communication: Effectively communicating salary-related


information to employees, including compensation packages,
pay stubs, and changes in compensation.

Effective salary management is crucial for attracting and


retaining talent, motivating employees, and maintaining a
competitive position in the job market.
6
ABOUT SQL QUERIES USED:

Import procedure we have used is:

CREATE OR REPLACE PROCEDURE


UPDATE_SALARY(M_EMPID IN INT) IS
DA_PERCENT NUMBER(10,2) := 0.05;
HRA_PERCENT NUMBER(10,2) := 0.10;
NEW_DA NUMBER(12,2);
NEW_HRA NUMBER(12,2);
NEW_GROSS_SAL NUMBER(12,2);
BEGIN
-- Retrieve the current salary of the employee
SELECT SALARY INTO NEW_GROSS_SAL FROM EMPLOYEE
WHERE EMPLOYEE_ID = M_EMPID;

-- Calculate new DA and HRA


NEW_DA := NEW_GROSS_SAL * DA_PERCENT;
NEW_HRA := NEW_GROSS_SAL * HRA_PERCENT;

-- Calculate the new gross salary


NEW_GROSS_SAL := NEW_GROSS_SAL + NEW_DA +
NEW_HRA;

-- Update the table with new values


UPDATE EMPLOYEE
SET DA = NEW_DA,
HRA = NEW_HRA,
GROSS_SALARY = NEW_GROSS_SAL
WHERE EMPLOYEE_ID = M_EMPID;

7
DBMS_OUTPUT.PUT_LINE('Updated salary for EMP_ID ' ||
M_EMPID);
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('Employee not found.');
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Error: ' );
END UPDATE_SALARY;
/

It takes one input parameter, M_EMPID, which is an integer


representing the employee's ID whose salary you want to update.
It defines two constants, DA_PERCENT and HRA_PERCENT, which
represent the percentages used to calculate the new DA and HRA
components.
It declares several variables:

NEW_DA: This variable will store the newly calculated DA.


NEW_HRA: This variable will store the newly calculated HRA.
NEW_GROSS_SAL: This variable will store the updated Gross Salary.
Inside the BEGIN block, the procedure does the following:

It retrieves the current Gross Salary for the employee with the provided
EMPLOYEE_ID using a SQL SELECT statement and stores it in the
NEW_GROSS_SAL variable.
It calculates the new DA and HRA by multiplying the current Gross
Salary by the corresponding percentage constants (DA_PERCENT and
HRA_PERCENT).
It calculates the new Gross Salary by adding the new DA and HRA to the
current Gross Salary.
It then updates the employee's record in the EMPLOYEE table with the
new values for DA, HRA, and Gross Salary using an UPDATE statement
based on the EMPLOYEE_ID.
8
OUTPUT:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy