kathleen422
New Member
- Joined
- Jan 16, 2004
- Messages
- 40
I have a table with the following data
Section
Item ID
Item Description
Qty
Amount
SELECT TOP 10 tbl_Stores.Section, tbl_Stores.[Item ID], tbl_Stores.[Item Description], Sum(tbl_Stores.Quantity) AS Qty, Sum(tbl_Stores.[Monetary Amount]) AS Amount
FROM tbl_Stores
WHERE (((tbl_Stores.[Accounting Date])=#9/30/2015#))
GROUP BY tbl_Stores.Section, tbl_Stores.[Item ID], tbl_Stores.[Item Description]
ORDER BY Sum(tbl_Stores.[Monetary Amount]) DESC;
I need for it to give me the top 10 for each section. Can someone tell me how to get that recordset
Section
Item ID
Item Description
Qty
Amount
SELECT TOP 10 tbl_Stores.Section, tbl_Stores.[Item ID], tbl_Stores.[Item Description], Sum(tbl_Stores.Quantity) AS Qty, Sum(tbl_Stores.[Monetary Amount]) AS Amount
FROM tbl_Stores
WHERE (((tbl_Stores.[Accounting Date])=#9/30/2015#))
GROUP BY tbl_Stores.Section, tbl_Stores.[Item ID], tbl_Stores.[Item Description]
ORDER BY Sum(tbl_Stores.[Monetary Amount]) DESC;
I need for it to give me the top 10 for each section. Can someone tell me how to get that recordset