Please could you help me with the following query which will be based on a report.
Create a report which shows how many of each type of sandwich are required for that day. You will need to run a query which joins the Orders and Orderline tables to find all orders with a delivery date of today (using a parameterised query) and then find all Orderlines for these Orders. GROUP BY SandwichNo and calculate how many of each sandwich type need to be made (use SUM(Quantity) in the SQL statement). You do not need to display the name of each sandwich as the sandwich maker is familiar with the SandwichNos. Format the report to allow the sandwich maker to produce the required amount of sandwiches of each type.
My tables for this query
Orders
OrderNo (pK)
CustomerNo
DateOfOrder
DeliveryDate
CostOFOrder
Delivery Address1
Delivery Address2
City
County
Post Code
Orderline
OrderNo (PK)
SandwichNo (PK)
Quantity
Enter your message below
Sign in or Join us (it's free).