SELECT GiftName, COUNT(Qty) As Quantity, category.catdesc FROM OrdersToProcess
inner join product on OrdersToProcess.giftname = product.prodname
inner join productcategory on product.prodid = productcategory.prodid
inner join category on productcategory.catid = category.catid
GROUP BY GiftName ORDER BY GiftName
|