G
Guest
Hi, I am having problems querying the top 20 records (PARTID's) from about 35
product codes. these Part ID's are the highest AMD in each Product code
category. I can only get the first top 20 records at a time but I would like
to run the query to show the top 20 for all 35 or so product codes in one
single queries. Below is my exact query I am using to get all the records
that I need to show the top 20 records.
SELECT DemandAmd_Combined.PCode, DemandAmd_Combined.ITEM,
DemandAmd_Combined.TotAmd, OnHandCombined.AvailQty, [AvailQty]/[TotAmd]*30 AS
DSO
FROM DemandAmd_Combined LEFT JOIN OnHandCombined ON
DemandAmd_Combined.ITEM=OnHandCombined.PART
Thanks in advance, Ray
product codes. these Part ID's are the highest AMD in each Product code
category. I can only get the first top 20 records at a time but I would like
to run the query to show the top 20 for all 35 or so product codes in one
single queries. Below is my exact query I am using to get all the records
that I need to show the top 20 records.
SELECT DemandAmd_Combined.PCode, DemandAmd_Combined.ITEM,
DemandAmd_Combined.TotAmd, OnHandCombined.AvailQty, [AvailQty]/[TotAmd]*30 AS
DSO
FROM DemandAmd_Combined LEFT JOIN OnHandCombined ON
DemandAmd_Combined.ITEM=OnHandCombined.PART
Thanks in advance, Ray