Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the database below and answer the query. PK refers to primary key and FK refers to foreign key. Employee( Employee_id(PK) , First_name, Last_name, Email,

Consider the database below and answer the query. PK refers to primary key and FK refers to foreign key.

Employee(Employee_id(PK), First_name, Last_name, Email, Phone_number, Hire_Date, Job_ID(FK), Commission_pct, manager_id, department_id(FK))

Departments(Department_id(PK), dept_name, manager_id(FK), location_id)

Locations(Location_id(PK), street_address, postal_code, city, state_province, country_id(FK))

Countries(Country_id(PK), Country_name, region_id)

Jobs(Job_id(PK),job_title, min_salary, max_salary)

Write PL/SQL script using cursor and loop to update the commission of the employees. If the commission percent is 5%, it should be increased to 7% and if the commission percent is 4%, it should be increased to 6%. It should be done for the employees who work with the job title that starts with J.



Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Experiencing MIS

Authors: David M. Kroenke, Andrew Gemino, Peter Tingling

3rd Canadian Edition

133153932, 978-0132615662, 132615665, 978-0133153934

More Books

Students also viewed these Databases questions