DBMSFINALREPORT
DBMSFINALREPORT
DBMSFINALREPORT
MICRO-PROJECT REPORT
COURSE: DATABASE MANAGEMENT SYSTEM (22319)
1
Rational:
2
Literature Review:
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
4
Resources Used;
5
Details :
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 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: