Question: MYSQL WORK. THFOR YOUR HELP. Write SQL statements that create the tables according to the given ER diagram. Your code should include constraints that enforce

MYSQL WORK. THFOR YOUR HELP.

Write SQL statements that create the tables according to the given ER diagram. Your code should include constraints that enforce primary key, foreign key, and deletion rule constraints.

Write SQL statements that populate the tables according to the data mentioned in the description or your own made up data. (Dont populate too much

data, just enough so you can do the questions below). Use your own made up data

Write SQL statements that show the average rating of each cafe/restaurant place, sort them by their ID.

Write SQL statements that show the highest and lowest ratingcafe/dining place.

Write SQL statements that show all the cafe/dining places that are open on a specific time (Your choice depends on the data youve populated).

Write SQL statements that show the total number of reviews acafe/dining place has.

Write SQL statements that show all the tags that a cafe/diningplace has.

ERD DIAGRAM

MYSQL WORK. THFOR YOUR HELP. Write SQL statements that create the tables

Completed ER Diagram Picture PicturelD BusinessID FK Picture User BusinessHasTag BusinessID PK FK UserlD PK Business BusinessID PK BusinessName BusinessDetail BusinessTell TagID PK FK Review ReviewID UserlD ModeratorID FK BusinessID FK ReviewText ReviewRating ReviewStatus Tag sinessURL Street City ZipCode TagID TagText PK UserHasRole UserlD PK FK RolelD PK FK FK tatelD asWifi State HasParking StatelD StateCode StateName Schedule SchedulelD PK BusinessID FK Day FromHour EndHour Role RolelD RoleTitle PK

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!