Answered step by step
Verified Expert Solution
Question
1 Approved Answer
USing SQL and corresponding to the table below; give the statements to perform the following: 1. When deleting a record of an employee who is
USing SQL and corresponding to the table below; give the statements to perform the following:
1. When deleting a record of an employee who is a manager, the managerID field of the department she/he works for should be set to null.
2. When deleting a record of a department, the deptName field of all employees who work in that department should be set to null.
Please respond, cannot find help anywhere.
Departments Name managerlD RD SALES Employees ID 123 Name John Robert Jenny Christ Bill Susan Salary 56000 37500 46000 39000 50000 67500 deptName RD HR HR SALES RD RD ?? 101Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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 Started