Computer Science Homework Help

NVCC Queries in SQL and Foreign Key Constraint Question

 

I’m working on a databases discussion question and need an explanation and answer to help me learn.

Member(member_ID first_name, last_name) Profile(member_ID profile_name) Movie(movie_ID title, movie_year, producer, avg_ratin

Write a trigger that updates the attribute “avg_rating” automatically whenever a new
tuple is inserted into Watch. Please put your trigger at the end of the provided testbed and
insert more tuples into the Watch relation to test your trigger (make sure you add select
statements to show the output). Please care for MUTATING-TABLE Error