Question: Write a stored procedure called Add Crew Member that accepts a movie id, crew id, position name, and wage. Ensure the wage is between $8,000

Write a stored procedure called Add Crew Member that accepts a movie id, crew id, position name, and wage. Ensure the wage is between $8,000 and $80,000. Add the person to the movie (Movie Crew) and update the budget of the movie by the person's wage. Be sure that the statements succeed or fail as a group and validate the success of each DML statement before proceeding to the next step. (Note: Assume each position name is unique in the Position table.

Step by Step Solution

3.49 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

CREATE PROCEDURE AddCrewMember MovieId int CrewId int Positio... View full answer

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 Accounting Questions!