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
Foodltem itemID, name, calories, price Order orderID, Date Customer custID, name, creditCardNum, bdate PartOfOrder order
-
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!