Question: Create a table Top 5 Restaurants restaurants in the database as: Create table Top 5 Restaurants ( rID int ) Top 5 Restaurants holds the

Create a table Top5Restaurants restaurants in the database as:
Create table Top5Restaurants(rID int)
Top5Restaurants holds the rIDs of top 5 restaurants in Chicago. Write a statement (+5) or row-level trigger(+10) on the Rating table that computes top 5 restaurants and populates the Top5Restaurants table. This trigger is fired every time a restaurant receives a new rating. Test your procedure and trigger in SQL Developer to insert the following four strings:
(Jade Court,`Sarah M.,4,08/17/2017)
(Shanghai Terrace,`Cameron J.,5,08/17/2017)
(Rangoli,`Vivek T.,3,`09/17/2017)
(Shanghai Inn,`Audrey M.,2,`07/08/2017);
(Cumin,`Cameron J.,2,09/17/2017)

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!