0% found this document useful (0 votes)
71 views2 pages

Infy - Generic - Dbms - PLSQL - PLSQL - Assignment2

The document provides instructions to write a PL/SQL code to calculate tax for employees using data from 5 tables: Employee_salary stores employee salary details including basic pay, HRA, DA, total deductions and net salary; Employee stores employee name and address; Works stores employee number and company details; Company stores company name; and Managers stores manager details including employee number and manager name. The code would calculate tax and display the employee name and tax amount by creating a table under the employee database using data from these 5 tables connected by primary keys.

Uploaded by

SettiNagaraju
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views2 pages

Infy - Generic - Dbms - PLSQL - PLSQL - Assignment2

The document provides instructions to write a PL/SQL code to calculate tax for employees using data from 5 tables: Employee_salary stores employee salary details including basic pay, HRA, DA, total deductions and net salary; Employee stores employee name and address; Works stores employee number and company details; Company stores company name; and Managers stores manager details including employee number and manager name. The code would calculate tax and display the employee name and tax amount by creating a table under the employee database using data from these 5 tables connected by primary keys.

Uploaded by

SettiNagaraju
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Write a PL/SQL code to calculate tax for an employee of an organization XYZ and to

display his/her name & tax, by creating a table under employee database as below.

a) Employee_salary

Emp_no

Basic

HRA

DA

Total_deduction net_salary

Gross_salary

b) Employee

Emp_no

Employee_name

Street

City

c) Works

Emp_no

Company_name

Joining_date

d) Company

Emp_no

e) Managers

City

Designation

Salary

Emp_no

Manager_name

Note: Primary keys are underlined.

Manger_no

You might also like