Question: 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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!