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) COmmision_pct, manager_id, department_id(FK))   Departments(Department_id(PK), dept_name, manager_id(FK), location_id)   Locations(Location_id(PK), street_address,

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter3: The Relational Database Model
Section: Chapter Questions
Problem 10P
icon
Related questions
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, Phone_number, Hire_Date, Job_ID(FK) COmmision_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)

 

write a pl/sql script to create a trigger that prints"the department name is changed from IT to sales" whenever the department is changed from IT to sales

 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Dataset
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr