Question: Part 1 : Consider the following database schema. For to - go orders, tableNo and emplID are NULL. For to - go orders and current
Part : Consider the following database schema. For togo orders, tableNo
and emplID are NULL. For togo orders and current orders, tip is NULL.
MenuItemitemName price
OrderorderNo tableNo, time, date, emplID, tip
ServeremplID emplName
MenuItemOrderitemName orderNo, quantity
HoursWorkedemplID date, hours
Write the following mySQL queries:
a Give the total price of order
b For each server who has fallen short of making $ per hour worked
in tips today, report the employee ID and the shortfall amount.
c Remove the lobster bisque from table s current order.
d Reassign all of Adam Bakers current orders to Charles Dugue.
e For each order, list the employee ID and tip. Output the results by
employee ID increasing then tip decreasing.
Describe the output table for the following query:
SELECT COUNT
FROM Order
WHERE tableNo IS NULL AND date CURDATE;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
