Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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 ?? 101

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions