Question: We introduced an employee-payroll hierarchy to calculate each employees payroll. In this exercise, we provide a database of employees that corresponds to the employee-payroll hierarchy.

We introduced an employee-payroll hierarchy to calculate each employee’s payroll. In this exercise, we provide a database of employees that corresponds to the employee-payroll hierarchy. (A SQL script to create the Employees database is provided with the examples for this chapter.) Write an application that allows the user to:

a) Add employees to the Employee table.

b) Add payroll information to the appropriate table for each new employee. For example, for a salaried employee add the payroll information to the SalariedEmployees table. Figure 24.35 is the entity-relationship diagram for the employees database.

Figure 24.35

salaried Employees social SecurityNumber weeklySalary bonus hourlyEmployees social SecurityNumber hours wage

salaried Employees social SecurityNumber weeklySalary bonus hourlyEmployees social SecurityNumber hours wage bonus employees social SecurityNumber firstName lastName birthday employee Type departmentName commission Employees social SecurityNumber gross Sales commissionRate bonus basePluscommission Employees social SecurityNumber grossSales commissionRate baseSalary bonus

Step by Step Solution

3.38 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To add employees to the Employee table you can use SQLs INSERT INTO statement Here is an example of ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java How To Program Late Objects Questions!