Question: Using the ERD you created in Task 1, develop a create.sql file that will create a database named grubhub. Using the grubhub database, include

Using the ERD you created in Task 1, develop a create.sql file that will create a database named grubhub. Using the grubhub database, includestatements in your file to create all the entities, attributes and primary

Using the ERD you created in Task 1, develop a create.sql file that will create a database named grubhub. Using the grubhub database, include statements in your file to create all the entities, attributes and primary and foreign key constraints detailed in your ERD. O Make sure to end each statement with a semicolon (;) O The creation scripts we have used in class are a great guide! Test running your create.sql file in our development environment. Adjust your script as needed. PK, FK Restaurants number, payment ID, address, name, phone number, and cuisine PK, FK PK, FK Orders unique number timestamp PK, FK GrubHub payment IDs PK, FK PK, FK Drivers status (paced, out, cancelled, and fullfilled) name, phone number, license plate number, drivers license number, payment ID, and status (active/inactive) PK, FK Customers number, name adress name, phone number, and payment ID record Name 1 April Ludgate 2 April Ludgate 3 Leslie Knope 4 Ron Swanson 5 Andy Dwyer 6 Task 3: Add Sample Data (15 pts) 6. Add insert statements to your create.sql file to add the data pictured below. This data is present in tables at the end of this document. Address 1235 55 Ave, Omaha, NE 68132 1235 55 Ave, Omaha, NE 68132 4387 Waffles Drive, Pawnee, IN, 46011 987 Bacon Avenue, Pawnee, IN 46011 2468 The Pit, Pawnee, IN 46011 Phone 402-553-4397 402-553-4397 234-432-5437 456-987-3265 pmt_id restaurant name address 23456 Paunch Burger 23456 Paunch Burger 98754 JJ's Diner 234789 Mulligan's 12390 JJ's Diner 6872 Lard Lane, Pawnee, IN 46011 6872 Lard Lane, Pawnee, IN 46011 23428 Main St. Pawnee, IN 46011 6876 Classy Rd., Indianapolis, IN 46077 23428 Main St. Pawnee, IN 46011 phone cuisine 678-893-1568 Fast food 678-893-1568 Fast food 456-987-3185 Breakfast 786-235-4862 Steakhouse 456-987-3185 Breakfast O rest. Pmt_id driver 4826 Henry Roth 4826 Charity Osborne 78623 Fritz Macias 48623 Brenden Hill 78623 Henry Roth Leah Peters phone license plate drivers license drv. Pmt_id drv. Status order date (286) 937-2250 IUC989 C04790049 444862 active (815) 605-0336 REW222 D89973937 959227 active (943) 893-6193 XUA177 U06119817 718371 active (513) 284-9064 IOL455 X22173227 334452 active (286) 937-2250 IUC 989 C04790049 444862 active (909) 477-8843 AJA879 V44276914 603268 inactive order status 9/30/2020 6:44 out 9/30/2020 10:44 placed 9/30/2020 10:54 fulfilled 9/30/2020 10:46 placed 9/30/2020 11:44 cancelled 7. Test running your create.sql file in our development environment. Adjust your script as needed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Based on the provided EntityRelationship Diagram ERD and the instructions heres a script createsql that will create the necessary tables for the grubh... View full answer

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 Algorithms Questions!