Question: Write SQL query statements to query the following DoorDash like grocery delivery database Tables. Customers make orders from grocery stores delivered by a delivery person.

 Write SQL query statements to query the following DoorDash like grocery
delivery database Tables. Customers make orders from grocery stores delivered by a

Write SQL query statements to query the following DoorDash like grocery delivery database Tables. Customers make orders from grocery stores delivered by a delivery person. "cid" is Customer ID. "did" is the ID of a deliverer. "oid" is the ID of an Order. "Rating" is the customer's satisfaction rate with a driver on a certain order. Rating is a numerical value from 1 to 10 with 10 representing most satisfactory. "cost" is the total cost of this order. Requires a single SQL statement as answer to each question unless otherwise noted. Customers Deliverers Feedbacks Find customers' first and last names who spent more than $20 in a single delivery that is delivered by "John Doe". 8. Using SQL, add a foreign key constraint to the Feedbacks and Orders table. If a Deliverer's id is updated in the Deliverers table, the Deliverers id is changed to NULL in the Feedbacks table, but the id is also updated in the Orders table

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!