S
shank
I have the following query. Is there a way to only return the 12 highest
[StockReport.QtyInStock] for each group of [StockReport.Description2] ... ?
In simple terms, I need the top 12 order#s in each group, sorted by Qty.
DESC.
SELECT StockReport.OrderNo, StockReport.Description2, StockReport.QtyInStock
FROM StockReport INNER JOIN [999 OrderNumbers] ON StockReport.OrderNo = [999
OrderNumbers].OrderNo
ORDER BY StockReport.Description2, StockReport.QtyInStock DESC;
thanks!
[StockReport.QtyInStock] for each group of [StockReport.Description2] ... ?
In simple terms, I need the top 12 order#s in each group, sorted by Qty.
DESC.
SELECT StockReport.OrderNo, StockReport.Description2, StockReport.QtyInStock
FROM StockReport INNER JOIN [999 OrderNumbers] ON StockReport.OrderNo = [999
OrderNumbers].OrderNo
ORDER BY StockReport.Description2, StockReport.QtyInStock DESC;
thanks!