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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Experiencing MIS
Authors: David M. Kroenke, Andrew Gemino, Peter Tingling
3rd Canadian Edition
133153932, 978-0132615662, 132615665, 978-0133153934
Students also viewed these Databases questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App