Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started