Reference no: EM133365108
Databases For Business Analytics Assignment
Populating and altering the tables
Part 1
After creating the Restaurants database with three tables, finish populating the Rating table with data.
• Include your SQL code for populating the table.
• Then, query the table to show all records. Take a screenshot of the result set and include it in your assignment.
Part 2
Alter your Restaurants table to include the street address, city, state, zip code, and status. Be sure to update your E-R UML diagram AND your data dictionary. Google to find the restaurant information and update each record. If the restaurant is still open, set the status to open. If it has closed down, set the status to closed. Include your SQL code and issue a query to show all records. Include a screenshot of the results set.
Part 3
• Create a view that shows just the restaurant name and average rating for open restaurants. Include your SQL code and issue a query to show all records. Include a screenshot of the results set.
• Join your Restaurant and Rating tables to show the restaurant name and rating. Include your SQL code and include a screenshot of the results set.