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)
Jobs(Job_id(PK),job_title, min_salary, max_salary)
PL/SQL script to create a function that receives employee ID and commission_pct as arguments and returns the total of salary and commission_pct for that employee, if the commission is more than 0.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
