the employee table have the following . ask user what is the employee_id and how much employee wants to contribute 2 substitutions variable from end user  &emp_id       &contribution_amount If employee salary is in between  $1000-$3999  And if  employee's contribution amount is less than $100 then company match $100                    if  employee's contribution amount is greater than 100 but less than $200 then company match $75                   if  employee's contribution amount is greater than $200 then company match $50 $4000-$6999  And if  employee's contribution amount is less than $100 then company match $150

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

 the employee table have the following .

ask user what is the employee_id and how much employee wants to contribute

2 substitutions variable from end user 
&emp_id      
&contribution_amount

If employee salary is in between 
$1000-$3999 
And if  employee's contribution amount is less than $100 then company match $100
                   if  employee's contribution amount is greater than 100 but less than $200 then company match $75
                  if  employee's contribution amount is greater than $200 then company match $50

$4000-$6999 
And if  employee's contribution amount is less than $100 then company match $150
                   if  employee's contribution amount is greater than 100 but less than $200 then company match $100
                  if  employee's contribution amount is greater than $200 then company match $75

 $7000-$12000
And if  employee's contribution amount is less than $100 then company match $200
                   if  employee's contribution amount is greater than 100 but less than $200 then company match $125
                  if  employee's contribution amount is greater than $200 then company match $100

>$12,000 
Whatever employee's contribution amount is company will match only %50 of contribution amount

Create a PL/SQL block using nested IF statements to accomplish the task. Input values for

the block are &employee_id and &contribution_amount.

 

EMPLOYEES
P * EMPLOYEE_ID
FIRST_NAME
* LAST_NAME
U * EMAIL
PHONE NUMBER
HIRE_DATE
F
* JOB_ID
SALARY
COMMISSION_PCT
F
MANAGER_ID
F
DEPARTMENT_ID
Transcribed Image Text:EMPLOYEES P * EMPLOYEE_ID FIRST_NAME * LAST_NAME U * EMAIL PHONE NUMBER HIRE_DATE F * JOB_ID SALARY COMMISSION_PCT F MANAGER_ID F DEPARTMENT_ID
Expert Solution
steps

Step by step

Solved in 2 steps with 6 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY