SELECT ItemCategory.Category, Sum(OrderItem.Quantity)
FROM (ItemCategory INNER JOIN Inventory ON ItemCategory.Category = Inventory.Category)
INNER JOIN ([Order] INNER JOIN OrderItem ON Order.OrderID = OrderItem.OrderID) ON
Inventory.ItemID = OrderItem.ItemID
Where Order.OrderDate LIKE MONTH(June)
Group By ItemCategory.Category;
我试图找出 6 月份订购的总数量。我在上面所做的查询在应该有结果时没有结果。
我的逻辑有问题吗?