Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions