Question: Write Procedure that inputs old_Manager_ID and new_manager_id. This store procedure will update all the departments with the old manager ID to the new manager id

  1. Write Procedure that inputs old_Manager_ID and new_manager_id. This store procedure will update all the departments with the old manager ID to the new manager id which is supplied as input parameters.
  2. Write statement in the store procedure that will update old_manager_id to new_manager_id for all the departments.
  3. Use returning clause to return all the updated rows by the update statement.
  4. Show execution of the store procedure.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!