Foodltem itemID, name, calories, price Order orderID, Date Customer custID, name, creditCardNum, bdate PartOfOrder order

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Foodltem itemID, name, calories, price Order orderID, Date Customer custID, name, creditCardNum, bdate PartOfOrder order

Post by answerhappygod »

Foodltem Itemid Name Calories Price Order Orderid Date Customer Custid Name Creditcardnum Bdate Partoforder Order 1
Foodltem Itemid Name Calories Price Order Orderid Date Customer Custid Name Creditcardnum Bdate Partoforder Order 1 (38.63 KiB) Viewed 31 times
Answer using SQL.
A)Find the name and custID of all customers born on
1999-12-31
B)Find the name of customers who have ordered (any quantity
>= 1) the food item “smellyFish” on 2019-01-01.
C)A new manager has decided all food items will cost $1, $2, $5,
$10, or $20. Find the average number of calories for all food items
that cost the same amount for each of the different dollar amounts.
Your query should be flexible to adding new/different dollar
amounts; hence, it should work for any number of price groups.
Foodltem itemID, name, calories, price Order orderID, Date Customer custID, name, creditCardNum, bdate PartOfOrder orderID, itemID, quantity PlacedOrder orderlD, custID
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply